Browse Source

Correctif fonctionnel

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

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

$query = $this->findByMerchantQuery(); $query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query); $query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber'); $query->andWhere('e.weekNumber = :weekNumber');
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->setParameter('weekNumber', $weekNumber); $query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate', 'DESC'); $query->orderBy('e.validationDate', 'DESC');
$query->setMaxResults(1); $query->setMaxResults(1);

Loading…
Cancel
Save