Ver código fonte

[Backend] Correctif ReductionCart

feature/module_traiteur_v1
Fab 4 anos atrás
pai
commit
bd85f3c6a8
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

+ 3
- 1
ShopBundle/Repository/ReductionCartRepository.php Ver arquivo

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

Carregando…
Cancelar
Salvar