From: Vladimir Fomichev Date: Wed, 11 Jun 2025 06:41:26 +0000 (+0300) Subject: Правки переменных X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=15b29520cee0a6ed3a6c174e16514cb4642a0261;p=erp24_rep%2Fyii-erp24%2F.git Правки переменных --- diff --git a/erp24/services/AutoPlannogrammaService.php b/erp24/services/AutoPlannogrammaService.php index 6095c773..ce8d7f7a 100644 --- a/erp24/services/AutoPlannogrammaService.php +++ b/erp24/services/AutoPlannogrammaService.php @@ -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'); } }