Pārlūkot izejas kodu

OrderShopRepository : ajout de weekNumber

feature/export_comptable
Guillaume pirms 4 gadiem
vecāks
revīzija
fafee2150d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 4
- 0
ShopBundle/Repository/OrderShopRepository.php Parādīt failu

@@ -142,6 +142,10 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->andWhere('e.' . $params['dateField'] . ' <= :dateEnd')->setParameter('dateEnd', $params['dateEnd']);
}

if (isset($params['weekNumber'])) {
$query->andWhere('e.weekNumber = :weekNumber')->setParameter('weekNumber', $params['weekNumber']);
}

if (isset($params['isCart'])) {
$query = $this->filterOrderCart($query);
}

Notiek ielāde…
Atcelt
Saglabāt