From: Alexander Smirnov Date: Tue, 18 Jun 2024 07:50:02 +0000 (+0300) Subject: Неизвестный индекс X-Git-Tag: 1.3~54^2~11 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a52ddfc6a8743a6d986c21e4f4e396dfaeca9082;p=erp24_rep%2Fyii-erp24%2F.git Неизвестный индекс --- diff --git a/erp24/modul/shipment/fields/division_price_summ.php b/erp24/modul/shipment/fields/division_price_summ.php index 712a2060..f9361774 100644 --- a/erp24/modul/shipment/fields/division_price_summ.php +++ b/erp24/modul/shipment/fields/division_price_summ.php @@ -37,7 +37,7 @@ $data_up = $data_up ?? []; foreach($products as $productId => $name) { foreach($orderStoresArrayRelation ?? [] as $storeId ) { $division_summ = $FiledsDataArray["division_summ"][$productId][$storeId] ?? 0; - $s=round($prices[$productId] * $division_summ); + $s=round(($prices[$productId] ?? 0) * $division_summ); $data_up[$productId][0][0] = ($data_up[$productId][0][0] ?? 0) + $s; $data_up[$productId][$storeId][0] = $s; }