From eda75cc38783eca037f60bd2f948e8b6422221f0 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Jun 2025 10:59:37 +0300 Subject: [PATCH] =?utf8?q?ERP-360=20=D0=A1=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=B0?= =?utf8?q?=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../AutoPlannogrammaController.php | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/erp24/controllers/AutoPlannogrammaController.php b/erp24/controllers/AutoPlannogrammaController.php index 4e4b71a8..bc1057d2 100644 --- a/erp24/controllers/AutoPlannogrammaController.php +++ b/erp24/controllers/AutoPlannogrammaController.php @@ -1766,36 +1766,6 @@ class AutoPlannogrammaController extends BaseController ]); } - public function actionWeeklyBouquetProductsForecast($storeId, $month, $year, $week) - { - Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; - - if (!$month || !$year || $week === null) { - return ['success' => false, 'message' => 'Нет параметров']; - } - - $service = new AutoPlannogrammaService(); - $result = $service->getWeeklyBouquetProductsForecast($month, $year, $storeId); - - if (!is_array($result)) { - return ['success' => false, 'message' => 'Ошибка структуры данных']; - } - - $grouped = []; - - - - if ($week !== null) { - $week = (int)$week; - $grouped = isset($grouped[$week]) ? [$week => $grouped[$week]] : []; - } - - return [ - 'success' => true, - 'data' => $grouped, - ]; - } - public function actionGetSubcategories(string $category, int $year, int $week): array { Yii::$app->response->format = Response::FORMAT_JSON; -- 2.39.5