Pārlūkot izejas kodu

Merge branch 'develop'

master
Guillaume Bourgeois pirms 4 mēnešiem
vecāks
revīzija
1e98060fdc
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      backend/controllers/DistributionController.php

+ 3
- 1
backend/controllers/DistributionController.php Parādīt failu

@@ -608,7 +608,9 @@ class DistributionController extends BackendController
$orderOverride = $orderModule->getBuilder()->instanciateOrderFromProductOrdersArray($productOrderArray, $order);
foreach($productOrderArray as $idProduct => $productOrder) {
$product = $productModule->getRepository()->findOneProductById($idProduct);
$productOrderArray[$idProduct]['quantity_remaining'] = $orderModule->getResolver()->getProductQuantityRemaining($product, $distribution, $orderOverride);
if($product) {
$productOrderArray[$idProduct]['quantity_remaining'] = $orderModule->getResolver()->getProductQuantityRemaining($product, $distribution, $orderOverride);
}
}

return $productOrderArray;

Notiek ielāde…
Atcelt
Saglabāt