]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
report/show Краснодонцев эксепшн bug_smirnov_2025_01_21_krasnodoncev_fall origin/bug_smirnov_2025_01_21_krasnodoncev_fall
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 21 Jan 2025 09:41:16 +0000 (12:41 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 21 Jan 2025 09:41:16 +0000 (12:41 +0300)
erp24/api3/core/services/ReportService.php

index 91628c0b44b0a52739f69a41e2b0019131f5ee3f..854591f25bf74f8f37fad46378cf8fd798240887 100644 (file)
@@ -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 = [];