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

index 830f0cb23d83e8f2dc8f75aafc31d1b63da7c0be..8392ff4897fff09de814a87b77f9a4278a31dd90 100644 (file)
@@ -1601,6 +1601,7 @@ class CronController extends Controller
                 $model = new Autoplannogramma();
                 $model->month = $month;
                 $model->year = $year;
+                $model->week = $item['week'];
                 $model->product_id = $item['product_id'];
                 $model->store_id = $item['store_id'];
                 $model->quantity = $item['forecast_week_pieces'];
@@ -1608,9 +1609,6 @@ class CronController extends Controller
                 $model->is_archive = false;
                 $model->capacity_type = 1;
 
-                foreach ($item as $key => $value) {
-                    $this->stdout($key . ": {$value}\n", BaseConsole::FG_GREEN);
-                }
                 if (!$model->save()) {
                     $errors = [];
                     foreach ($model->getErrors() as $attr => $attrErrors) {