Bläddra i källkod

[Backend] Correctif ReductionCart

feature/module_traiteur_v1
Fab 4 år sedan
förälder
incheckning
bd85f3c6a8
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

+ 3
- 1
ShopBundle/Repository/ReductionCartRepository.php Visa fil

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

Laddar…
Avbryt
Spara