浏览代码

Processus de commande

feature/export_comptable
Fab 4 年前
父节点
当前提交
438e4a91a2
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. +11
    -0
      ShopBundle/Repository/OrderShopRepository.php
  2. +1
    -0
      ShopBundle/Services/Order/OrderUtils.php

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

@@ -158,4 +158,15 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
return $query->getQuery()->getResult() ;
}
}

public function findLastOrderValidOfWeek($weekNumber){
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate','DESC');

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

}
}

+ 1
- 0
ShopBundle/Services/Order/OrderUtils.php 查看文件

@@ -349,6 +349,7 @@ class OrderUtils

public function createDocumentInvoice(OrderShopInterface $orderShop)
{
//TODO set invoiceNumber
$merchantAddress = $orderShop->getMerchant()->getAddress();
$buyerAddress = $orderShop->getInvoiceAddress();


正在加载...
取消
保存