From: Alexander Smirnov Date: Mon, 20 May 2024 14:42:26 +0000 (+0300) Subject: fix part 004 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=64a283f023909b49d497d7b955243f9ff19819ff;p=yii-erp24%2F.git fix part 004 --- diff --git a/erp24/modul/shipment/fields/price_zakup_summ.php b/erp24/modul/shipment/fields/price_zakup_summ.php index d3c37b7..08ff232 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); }