Explorar el Código

[Backend] Correctif ReductionCart

feature/module_traiteur_v1
Fab hace 4 años
padre
commit
bd85f3c6a8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

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

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

Cargando…
Cancelar
Guardar