From: fomichev Date: Mon, 12 May 2025 15:32:07 +0000 (+0300) Subject: Добавление проверки на 10% X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d5d684ac3b4d6130ca03c33de63f5affe90d2aad;p=erp24_rep%2Fyii-erp24%2F.git Добавление проверки на 10% --- diff --git a/erp24/services/AutoPlannogrammaService.php b/erp24/services/AutoPlannogrammaService.php index 5eeba658..cbf87ff6 100644 --- a/erp24/services/AutoPlannogrammaService.php +++ b/erp24/services/AutoPlannogrammaService.php @@ -585,7 +585,7 @@ var_dump($totals); die(); $cat = $row['category']; $sub = $row['subcategory']; - $writeShare = $row['share']; + $writeShare = $row['percent_of_month']; $writeGoal = ($catGoalMap[$cat] ?? 0) * $writeShare; $saleGoal = $salesSubGoalMap[$cat][$sub] ?? 0; @@ -618,7 +618,7 @@ var_dump($totals); die(); $sub = $row['subcategory']; $spec = $row['species']; - $writeShare = $row['share']; + $writeShare = $row['percent_of_month']; $writeGoal = ($subGoalMap[$cat][$sub] ?? 0) * $writeShare; $saleGoal = $salesSpecGoalMap[$cat][$sub][$spec] ?? 0;