Selaa lähdekoodia

[Backend] Correctif compléments de commande : check isValid

feature/export_comptable
Guillaume 4 vuotta sitten
vanhempi
commit
6c5ffce82b
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. +1
    -4
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 4
ShopBundle/Repository/OrderShopRepository.php Näytä tiedosto

@@ -4,6 +4,7 @@ namespace Lc\ShopBundle\Repository;

use App\Entity\DeliveryAvailabilityPointSale;
use App\Entity\DeliveryAvailabilityZone;
use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder;
use Lc\ShopBundle\Context\DefaultRepositoryInterface;
use Lc\ShopBundle\Context\OrderShopInterface;
@@ -188,10 +189,6 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
if (isset($params['mergeComplementaryOrderShops'])) {
$query->andWhere('e.mainOrderShop IS NULL');
$query->leftJoin('e.complementaryOrderShops', 'complementaryOrderShops');

$query->leftJoin('complementaryOrderShops.orderStatus', 'complementaryOrderStatus');
$query->andWhere('complementaryOrderShops IS NULL OR complementaryOrderStatus.alias IN (:statusAliasValid)');
$query->setParameter('statusAliasValid', OrderStatus::$statusAliasAsValid);
}

if (isset($params['excludeComplementaryOrderShops'])) {

Loading…
Peruuta
Tallenna