]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Правки переменных
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 06:41:26 +0000 (09:41 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 06:41:26 +0000 (09:41 +0300)
erp24/services/AutoPlannogrammaService.php

index 6095c7731cc24e68d7a6328137d18bbb4a09bd88..ce8d7f7a9e96c8ad24046d0bce91909111b122e3 100644 (file)
@@ -973,7 +973,7 @@ class AutoPlannogrammaService
         ?array     $filters = null,
         string     $type    = self::TYPE_SALES
     ): array {
-        [$yearStr, $monthStr, $_] = explode('-', $monthYear);
+        [$yearStr, $monthStr, $day] = explode('-', $monthYear);
         $year  = (int)$yearStr;
         $month = (int)$monthStr;
 
@@ -1302,7 +1302,7 @@ class AutoPlannogrammaService
         ?array $productFilter = null,
         string $type = 'sales'
     ): array {
-        [$monthStr, $yearStr] = explode('-', $monthYear);
+        [$yearStr, $monthStr, $day] = explode('-', $monthYear);
         $month = (int)$monthStr;
         $year  = (int)$yearStr;
         $yearData = [];
@@ -1359,7 +1359,7 @@ class AutoPlannogrammaService
         foreach ($monthMap as $sid => $byCat) {
             foreach ($byCat as $cat => $bySub) {
                 foreach ($bySub as $sub => $bySpec) {
-                    foreach ($bySpec as $spec => $_) {
+                    foreach ($bySpec as $spec => $value) {
                         $speciesList[] = compact('sid','cat','sub','spec');
                     }
                 }