From: marina Date: Tue, 10 Jun 2025 10:00:02 +0000 (+0300) Subject: ERP-360 Сборка страницы автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=bdc0a2ede91b5552ff2ccc4479b8a750ef08dd93;p=erp24_rep%2Fyii-erp24%2F.git ERP-360 Сборка страницы автопм --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 830f0cb2..8392ff48 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -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) {