Group Checked Added

This commit is contained in:
Devansh 2022-05-12 09:43:46 +05:30
parent bc3322d771
commit f394b16993
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ class Grouped extends AbstractType
return false;
}
if (ProductFlat::query()->select('id')->whereIn('product_id', $this->getChildrenIds())->where('status', 0)->first()) {
return false;
if (ProductFlat::query()->select('id')->whereIn('product_id', $this->getChildrenIds())->where('status', 1)->first()) {
return true;
}
return true;