]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Merge branch 'refs/heads/develop' into feature_fomichev_erp-20250729_nomenclature_actual
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 22 Aug 2025 06:28:37 +0000 (09:28 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 22 Aug 2025 06:28:37 +0000 (09:28 +0300)
# Conflicts:
# erp24/services/AutoPlannogrammaService.php

1  2 
erp24/services/AutoPlannogrammaService.php
erp24/services/StorePlanService.php

index e5a6c946adc68b4459d934b3da2a75bcb9ec70c9,cd178acd71c51a5b91748186bfadfa1a8575ae52..a84a2ae51ca0356ee242d9b2b6408fd96430b4d0
@@@ -3133,13 -3236,13 +3248,17 @@@ private function buildCategoryGoals(arr
                  $salesShares[$storeId]['marketplace'] = round($market / $total, 4);
              }
          }
          foreach ($weeklyForecasts as $item) {
+             $groupsArr = explode('_', (string)$item['matrix_group']);
+             $baseGroup = $groupsArr[0];
              $storeItem = (int)$item['store_id'];
              $guid = (string)$item['product_guid'];
+             $group = $baseGroup;
 +            if (!in_array($guid, $actualProducts)) {
 +               continue;
 +            }
 +            $group = (string)$item['matrix_group'];
              $type = (string)$item['type'];
              $forecastValue = (float)$item['week_forecast'];
              if (isset($salesShares[$storeItem]) && isset($salesShares[$storeItem][$type])) {
Simple merge