From: Alexander Smirnov Date: Tue, 21 Jan 2025 09:41:16 +0000 (+0300) Subject: report/show Краснодонцев эксепшн X-Git-Tag: 1.7~56^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b6beaf3dc10f3f9af1826cd979135a873721d6d7;p=erp24_rep%2Fyii-erp24%2F.git report/show Краснодонцев эксепшн --- diff --git a/erp24/api3/core/services/ReportService.php b/erp24/api3/core/services/ReportService.php index 91628c0b..854591f2 100644 --- a/erp24/api3/core/services/ReportService.php +++ b/erp24/api3/core/services/ReportService.php @@ -196,12 +196,16 @@ class ReportService $totalWriteOffsByStoreId = []; foreach ($writeOffs as $guid => $value) { - $totalWriteOffsByStoreId[$eitMonth[$guid]['entity_id']] = $value['total']; + if (isset($eitMonth[$guid]['entity_id'])) { + $totalWriteOffsByStoreId[$eitMonth[$guid]['entity_id']] = $value['total']; + } } $totalWriteOffsByStoreIdMonth = []; foreach ($writeOffsMonth as $guid => $value) { - $totalWriteOffsByStoreIdMonth[$eitMonth[$guid]['entity_id']] = $value['total']; + if (isset($eitMonth[$guid]['entity_id'])) { + $totalWriteOffsByStoreIdMonth[$eitMonth[$guid]['entity_id']] = $value['total']; + } } $specificSales = [];