浏览代码

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;

正在加载...
取消
保存