Browse Source

[Backend] Correctif ReductionCart

feature/module_traiteur_v1
Fab 4 years ago
parent
commit
bd85f3c6a8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

+ 3
- 1
ShopBundle/Repository/ReductionCartRepository.php View File



$reductionCartsArray = [] ; $reductionCartsArray = [] ;
foreach($reductionCarts as $reductionCart) { foreach($reductionCarts as $reductionCart) {
dump($reductionCart);
if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user) if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user)
&& $this->orderUtils->isReductionCartMatchWithGroupUser($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 ; $reductionCartsArray[] = $reductionCart ;
} }

Loading…
Cancel
Save