]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-360 Сборка страницы автопм
authormarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 07:59:37 +0000 (10:59 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 07:59:37 +0000 (10:59 +0300)
erp24/controllers/AutoPlannogrammaController.php

index 4e4b71a83c287f8719fc798cd1b484d6e9a9ec36..bc1057d298e3e68796a3fdcd75252fa6ba7aca96 100644 (file)
@@ -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;