Sfoglia il codice sorgente

Correctif fonctionnel

feature/export_comptable
Fab 4 anni fa
parent
commit
c52d3f0218
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 0
ShopBundle/Repository/OrderShopRepository.php Vedi File

@@ -233,6 +233,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber');
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate', 'DESC');
$query->setMaxResults(1);

Loading…
Annulla
Salva