瀏覽代碼

[Administration] Correctif gestion des accessoires

feature/rotating_product
Guillaume Bourgeois 4 月之前
父節點
當前提交
0ad5e73ff7
共有 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…
取消
儲存