Browse Source

OrderShopRepository : ajout de weekNumber

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

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

@@ -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);
}

Loading…
Cancel
Save