Sfoglia il codice sorgente

[Backend] Correctif ReductionCart

feature/module_traiteur_v1
Fab 4 anni fa
parent
commit
bd85f3c6a8
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

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

@@ -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 ;
}

Loading…
Annulla
Salva