]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-360 Сборка страницы автопм
authormarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 07:52:45 +0000 (10:52 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 07:52:45 +0000 (10:52 +0300)
erp24/services/AutoPlannogrammaService.php

index 810fc9b5b4589826851b203a455cb9cb2a6d98cd..9b3cb7613540a956f88f99634d21a4e6ed288cdc 100644 (file)
@@ -2851,14 +2851,13 @@ class AutoPlannogrammaService
 
         $grouped = [];
         foreach ($weeklyForecasts as $item) {
-            $weekItem = (int)$item['week'];
             $storeItem = (int)$item['store_id'];
             $guid = (string)$item['product_guid'];
             $group = (string)$item['matrix_group'];
             $type = (string)$item['type'];
             $forecastValue = (float)$item['week_forecast'];
 
-            $grouped[$weekItem][$storeItem][$guid][$type][$group] = $forecastValue;
+            $grouped[$storeItem][$guid][$type][$group] = $forecastValue;
         }
 
         return $grouped;