Преглед изворни кода

Merge branch 'develop'

master
Guillaume Bourgeois пре 1 година
родитељ
комит
687b95d8bc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      Repository/Order/OrderShopRepositoryQuery.php

+ 1
- 1
Repository/Order/OrderShopRepositoryQuery.php Прегледај датотеку

@@ -61,7 +61,6 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery
public function selectSum(): self
{
$this->joinProduct();
$this->joinDistribution();
return $this
->select(
'SUM(orderProducts.quantityOrder) as quantity, distribution.cycleNumber as cycleNumber, distribution.year as year , product.id as productId'
@@ -161,6 +160,7 @@ class OrderShopRepositoryQuery extends AbstractRepositoryQuery

public function filterByDistributions(array $distributionArray): self
{
$this->joinDistribution();
return $this
->andWhere('.distribution IN (:distributions)')
->setParameter('distributions', $distributionArray);

Loading…
Откажи
Сачувај