|
|
@@ -10,6 +10,7 @@ use Lc\CaracoleBundle\Builder\File\DocumentBuilder; |
|
|
|
use Lc\CaracoleBundle\Model\Distribution\DistributionInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderStatusModel; |
|
|
|
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Product\ProductInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface; |
|
|
@@ -590,6 +591,7 @@ class OrderShopStore extends AbstractStore |
|
|
|
public function countValidOrderProductsOfDistributionsByProducts( |
|
|
|
array $distributions, |
|
|
|
array $products, |
|
|
|
ProductFamilyInterface $productFamily, |
|
|
|
$query = null |
|
|
|
): array { |
|
|
|
$query = $this->createDefaultQuery($query); |
|
|
@@ -601,7 +603,7 @@ class OrderShopStore extends AbstractStore |
|
|
|
->groupBy('distribution.cycleNumber, product.id'); |
|
|
|
|
|
|
|
//TODO vérifier ou est utilisé cette fonction ??? |
|
|
|
|
|
|
|
dump($query->find()); |
|
|
|
return $query->find(); |
|
|
|
} |
|
|
|
|