瀏覽代碼

Merge branch 'develop'

master
Guillaume Bourgeois 4 月之前
父節點
當前提交
1e98060fdc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      backend/controllers/DistributionController.php

+ 3
- 1
backend/controllers/DistributionController.php 查看文件

@@ -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;

Loading…
取消
儲存