From: marina Date: Tue, 17 Jun 2025 07:59:37 +0000 (+0300) Subject: ERP-360 Сборка страницы автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=eda75cc38783eca037f60bd2f948e8b6422221f0;p=erp24_rep%2Fyii-erp24%2F.git ERP-360 Сборка страницы автопм --- 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;