瀏覽代碼

Correctif exports pesés

feature/export_comptable
Fab 4 年之前
父節點
當前提交
f1d4692075
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      ShopBundle/Repository/OrderShopRepository.php

+ 3
- 2
ShopBundle/Repository/OrderShopRepository.php 查看文件

@@ -172,8 +172,9 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
if(isset($params['deliveryDate'])) {
$query->andWhere('e.deliveryDate >= :deliveryDateStart');
$query->andWhere('e.deliveryDate < :deliveryDateEnd');
$query->setParameter('deliveryDateStart', $params['deliveryDate']->format('Y-m-d 00:00:00'));
$query->setParameter('deliveryDateEnd', $params['deliveryDate']->modify('+1 day')->format('Y-m-d 00:00:00'));
$date = clone $params['deliveryDate'];
$query->setParameter('deliveryDateStart', $date->format('Y-m-d 00:00:00'));
$query->setParameter('deliveryDateEnd', $date->modify('+1 day')->format('Y-m-d 00:00:00'));
}

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

Loading…
取消
儲存