From: Alexander Smirnov Date: Mon, 20 May 2024 14:50:20 +0000 (+0300) Subject: fix part 006 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=335059865a5347cb85945e1ce5e696a391def0e7;p=yii-erp24%2F.git fix part 006 --- diff --git a/erp24/modul/shipment/fields/auto_purchase_formula.php b/erp24/modul/shipment/fields/auto_purchase_formula.php index 3c85c0d..0cc2355 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"