From: Vladimir Fomichev Date: Fri, 22 Aug 2025 06:28:37 +0000 (+0300) Subject: Merge branch 'refs/heads/develop' into feature_fomichev_erp-20250729_nomenclature_actual X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e3f62fcf2a0f85aaa96f35e1f2725bd59989fb62;p=erp24_rep%2Fyii-erp24%2F.git Merge branch 'refs/heads/develop' into feature_fomichev_erp-20250729_nomenclature_actual # Conflicts: # erp24/services/AutoPlannogrammaService.php --- e3f62fcf2a0f85aaa96f35e1f2725bd59989fb62 diff --cc erp24/services/AutoPlannogrammaService.php index e5a6c946,cd178acd..a84a2ae5 --- a/erp24/services/AutoPlannogrammaService.php +++ b/erp24/services/AutoPlannogrammaService.php @@@ -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])) {