From 64a283f023909b49d497d7b955243f9ff19819ff Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 20 May 2024 17:42:26 +0300 Subject: [PATCH] fix part 004 --- erp24/modul/shipment/fields/price_zakup_summ.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/modul/shipment/fields/price_zakup_summ.php b/erp24/modul/shipment/fields/price_zakup_summ.php index d3c37b7c..08ff232d 100644 --- a/erp24/modul/shipment/fields/price_zakup_summ.php +++ b/erp24/modul/shipment/fields/price_zakup_summ.php @@ -14,7 +14,7 @@ foreach($dataF as $row) { foreach($products ?? [] as $product_id => $name){ - $data_up[$product_id][0][0] = round($FiledsDataArray["purchase_price_zakup"][$product_id] * $FiledsDataArray["quantity_zakup_fact"][$product_id],2); + $data_up[$product_id][0][0] = round(($FiledsDataArray["purchase_price_zakup"][$product_id] ?? 0) * ($FiledsDataArray["quantity_zakup_fact"][$product_id] ?? 0),2); } -- 2.39.5