Browse Source

Ajout de champ commandes

feature/export_comptable
Fab 4 years ago
parent
commit
fec83f462a
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 13
- 0
ShopBundle/Repository/OrderShopRepository.php View File



} }


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) public function countValidOrderProductsOfWeekByProduct($weekNumber, $productId)
{ {
$query = $this->findByMerchantQuery(); $query = $this->findByMerchantQuery();

Loading…
Cancel
Save