From b6beaf3dc10f3f9af1826cd979135a873721d6d7 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 21 Jan 2025 12:41:16 +0300 Subject: [PATCH] =?utf8?q?report/show=20=D0=9A=D1=80=D0=B0=D1=81=D0=BD?= =?utf8?q?=D0=BE=D0=B4=D0=BE=D0=BD=D1=86=D0=B5=D0=B2=20=D1=8D=D0=BA=D1=81?= =?utf8?q?=D0=B5=D0=BF=D1=88=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api3/core/services/ReportService.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 = []; -- 2.39.5