Browse Source

weekId error

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

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

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


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

Loading…
Cancel
Save