From 75f0fe45471181a4ac7c26df437cea1a1a348488 Mon Sep 17 00:00:00 2001 From: marina Date: Fri, 6 Jun 2025 12:02:17 +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 --- ...5_201027_create_autoplannagramma_table.php | 5 +- erp24/records/Autoplannogramma.php | 72 +++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 erp24/records/Autoplannogramma.php diff --git a/erp24/migrations/m250605_201027_create_autoplannagramma_table.php b/erp24/migrations/m250605_201027_create_autoplannagramma_table.php index 34a46167..64bc54a7 100644 --- a/erp24/migrations/m250605_201027_create_autoplannagramma_table.php +++ b/erp24/migrations/m250605_201027_create_autoplannagramma_table.php @@ -15,12 +15,15 @@ class m250605_201027_create_autoplannagramma_table extends Migration $this->createTable('{{%autoplannogramma}}', [ 'id' => $this->primaryKey(), 'week' => $this->integer()->comment('Неделя'), + 'month' => $this->integer()->comment('Месяц'), 'year' => $this->integer()->comment('Год'), 'product_id' => $this->string()->comment('GUID продукта'), 'store_id' => $this->integer()->comment('ID магазина'), 'capacity_type' => $this->integer()->comment('Тип планограммы'), - 'auto_forecast' => $this->boolean()->comment('Прогнозированное значение'), 'quantity' => $this->integer()->comment('Количество'), + 'quantity_forecast' => $this->integer()->comment('Количество рассчитанное'), + 'is_archive' => $this->boolean()->comment('Архивная ли запись?'), + 'auto_forecast' => $this->boolean()->comment('Значение спрогнозировано?'), 'created_at' => $this->dateTime()->comment('Дата создания'), 'updated_at' => $this->dateTime()->comment('Дата обновления'), 'created_by' => $this->integer()->comment('Автор создания'), diff --git a/erp24/records/Autoplannogramma.php b/erp24/records/Autoplannogramma.php new file mode 100644 index 00000000..008983c8 --- /dev/null +++ b/erp24/records/Autoplannogramma.php @@ -0,0 +1,72 @@ + 255], + ]; + } + + /** + * {@inheritdoc} + */ + public function attributeLabels() + { + return [ + 'id' => 'ID', + 'week' => 'Неделя', + 'month' => 'Месяц', + 'year' => 'Год', + 'product_id' => 'GUID продукта', + 'store_id' => 'ID магазина', + 'capacity_type' => 'Тип планограммы', + 'quantity' => 'Количество', + 'quantity_forecast' => 'Количество рассчитанное', + 'is_archive' => 'Архивная ли запись?', + 'auto_forecast' => 'Значение спрогнозировано?', + 'created_at' => 'Дата создания', + 'updated_at' => 'Дата обновления', + 'created_by' => 'Автор создания', + 'updated_by' => 'Автор обновления', + ]; + } +} -- 2.39.5