瀏覽代碼

Correctif fonctionnel

feature/export_comptable
Fab 4 年之前
父節點
當前提交
c52d3f0218
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 0
ShopBundle/Repository/OrderShopRepository.php 查看文件

@@ -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…
取消
儲存