From: Alexander Smirnov Date: Mon, 20 May 2024 14:39:12 +0000 (+0300) Subject: fix part 003 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5584cb77ac5e64bd4c37333d82e008bcbc934180;p=yii-erp24%2F.git fix part 003 --- diff --git a/erp24/modul/shipment/fields/purchase_summ.php b/erp24/modul/shipment/fields/purchase_summ.php index b129cb2..09eaa6f 100644 --- a/erp24/modul/shipment/fields/purchase_summ.php +++ b/erp24/modul/shipment/fields/purchase_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"][$product_id] * $FiledsDataArray["quantity_zakup_fact"][$product_id]); + $data_up[$product_id][0][0] = round(($FiledsDataArray["purchase_price"][$product_id] ?? 0) * ($FiledsDataArray["quantity_zakup_fact"][$product_id] ?? 0)); }