From 335059865a5347cb85945e1ce5e696a391def0e7 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 20 May 2024 17:50:20 +0300 Subject: [PATCH] fix part 006 --- erp24/modul/shipment/fields/auto_purchase_formula.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/modul/shipment/fields/auto_purchase_formula.php b/erp24/modul/shipment/fields/auto_purchase_formula.php index 3c85c0db..0cc2355e 100644 --- a/erp24/modul/shipment/fields/auto_purchase_formula.php +++ b/erp24/modul/shipment/fields/auto_purchase_formula.php @@ -26,8 +26,8 @@ $FiledsDataArray[$row["field_name"]][$row["product_id"]][$row["store_id"]]=(int) $storesArray[0]="Всего"; foreach($products ?? [] as $product_id => $name) { - $min_order = $FiledsDataArray["min_order"][$product_id][""]; - $min_lot=$FiledsDataArray["min_lot"][$product_id][""]; + $min_order = $FiledsDataArray["min_order"][$product_id][""] ?? 0; + $min_lot=$FiledsDataArray["min_lot"][$product_id][""] ?? 0; echo"
-- 2.39.5