Pārlūkot izejas kodu

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

develop
Guillaume pirms 3 gadiem
vecāks
revīzija
f3c575bff1
1 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. +0
    -15
      ShopBundle/Repository/OrderShopRepository.php

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

@@ -313,20 +313,5 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
}


public function countValidOrderProductsOfWeekByProduct($weekNumber, $productId)
{
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber');
$query->setParameter('weekNumber', $weekNumber);
$query->leftJoin('e.orderProducts', 'orderProduct');
$query->andWhere('orderProduct.product = :product');
$query->setParameter('product', $productId);
$query->select('SUM(orderProduct.quantityOrder) as quantity');

$result = $query->getQuery()->getOneOrNullResult();

return $result['quantity'];

}
}

Notiek ielāde…
Atcelt
Saglabāt