|
|
@@ -68,9 +68,11 @@ class ReductionCartRepository extends BaseRepository implements DefaultRepositor |
|
|
|
|
|
|
|
$reductionCartsArray = [] ; |
|
|
|
foreach($reductionCarts as $reductionCart) { |
|
|
|
dump($reductionCart); |
|
|
|
if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user) |
|
|
|
&& $this->orderUtils->isReductionCartMatchWithGroupUser($reductionCart, $user) |
|
|
|
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user)) { |
|
|
|
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user) |
|
|
|
&& ($reductionCart->getUsers()->count() > 0 || $reductionCart->getGroupUsers()->count() > 0)) { |
|
|
|
|
|
|
|
$reductionCartsArray[] = $reductionCart ; |
|
|
|
} |