]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Убрал пробелы
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 29 Sep 2025 07:45:01 +0000 (10:45 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 29 Sep 2025 07:45:01 +0000 (10:45 +0300)
erp24/controllers/AutoPlannogrammaController.php
erp24/services/AutoPlannogrammaService.php

index 3f35f9f867471f715898afe4d6053a317d121ed8..234270ed09e96de3fe640832ee6906acd75c7b4f 100644 (file)
@@ -1367,14 +1367,9 @@ class AutoPlannogrammaController extends BaseController
             $service = new AutoPlannogrammaService();
             //$goals = $service->calculateFullGoalChain($filters);
             //$forecast = $service->calculateFullForecastForWeek($filters);
-            //$noHistoryProductData = $service->calculateSpeciesForecastForProductsWithoutHistory($filters['plan_date'], $filters);
-
             $monthCategoryShare = $service->getMonthCategoryShareOrWriteOff($filters['plan_date'], $filters);
-
             $monthCategoryGoal = $service->getMonthCategoryGoal($monthCategoryShare, $filters['plan_date']);
-
             $monthSubcategoryShare = $service->getMonthSubcategoryShareOrWriteOff($filters['plan_date'], $filters);
-
             $monthSubcategoryGoal = $service->getMonthSubcategoryGoal($monthSubcategoryShare, $monthCategoryGoal);
             $monthSpeciesShare = $service->getMonthSpeciesShareOrWriteOff($filters['plan_date'], $filters);
             $goals = $service->getMonthSpeciesGoalDirty($monthSpeciesShare, $monthSubcategoryGoal);
index ad601c8c7131e3711814c5760bba152179c0b1db..a6eef77d4d8db9c04c47ee7354c9099d364d90fd 100644 (file)
@@ -1400,9 +1400,9 @@ private function buildCategoryGoals(array $rawGoals, bool $subtractMatrix, int $
             }
 
             if ($sumPercent < 1.0) {
-                $diff  = 1.0 - round($sumPercent, 4);
+                $diff = 1.0 - round($sumPercent, 4);
                 $count = count($indices);
-                $add   = round($diff / $count, 4);
+                $add = round($diff / $count, 4);
                 foreach ($indices as $i) {
                     $result[$i]['share'] = round($result[$i]['share'] + $add, 6);
                 }