Pārlūkot izejas kodu

Correctif fonctionnel

feature/export_comptable
Fab pirms 4 gadiem
vecāks
revīzija
c52d3f0218
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 0
ShopBundle/Repository/OrderShopRepository.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt