@@ -233,6 +233,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt | |||
$query = $this->findByMerchantQuery(); | |||
$query = $this->filterOrderValid($query); | |||
$query->andWhere('e.weekNumber = :weekNumber'); | |||
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL'); | |||
$query->setParameter('weekNumber', $weekNumber); | |||
$query->orderBy('e.validationDate', 'DESC'); | |||
$query->setMaxResults(1); |