{ | { | ||||
$orderShopRepo = $this->em->getRepository(OrderShopInterface::class); | $orderShopRepo = $this->em->getRepository(OrderShopInterface::class); | ||||
$totalProductOrdered = array(); | $totalProductOrdered = array(); | ||||
$currentWeekNumber = $this->orderUtils->getWeekNumberCurrent(); | |||||
$currentWeekNumber = $this->orderUtils->getWeekNumberCurrentOrder(); | |||||
$totalProductOrdered['total'][$currentWeekNumber +1] = 0; | $totalProductOrdered['total'][$currentWeekNumber +1] = 0; | ||||
$totalProductOrdered['total'][$currentWeekNumber ] = 0; | $totalProductOrdered['total'][$currentWeekNumber ] = 0; | ||||
if ($withOffline) $query->andWhere('e.status >= 0'); | if ($withOffline) $query->andWhere('e.status >= 0'); | ||||
else $query->andWhere('e.status = 1'); | else $query->andWhere('e.status = 1'); | ||||
$query->leftJoin('e.productFamilies','productFamilies') ; | |||||
$query->orderBy('e.position', 'ASC'); | $query->orderBy('e.position', 'ASC'); | ||||
$('form button[type="submit"]').on('click', function (e) { | $('form button[type="submit"]').on('click', function (e) { | ||||
checkForm(); | checkForm(); | ||||
log('ncihe') | |||||
}) | }) | ||||
if ($('.select2, select.form-control').length) { | if ($('.select2, select.form-control').length) { |