浏览代码

Ajout de champ commandes

feature/export_comptable
Fab 4 年前
父节点
当前提交
fec83f462a
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. +13
    -0
      ShopBundle/Repository/OrderShopRepository.php

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

@@ -250,6 +250,19 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt

}

public function findLastOrderValid()
{
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->orderBy('e.validationDate', 'DESC');
$query->setMaxResults(1);

return $query->getQuery()->getOneOrNullResult();

}


public function countValidOrderProductsOfWeekByProduct($weekNumber, $productId)
{
$query = $this->findByMerchantQuery();

正在加载...
取消
保存