From: marina Date: Fri, 6 Jun 2025 09:02:17 +0000 (+0300) Subject: ERP-360 Сборка страницы автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=75f0fe45471181a4ac7c26df437cea1a1a348488;p=erp24_rep%2Fyii-erp24%2F.git ERP-360 Сборка страницы автопм --- 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' => 'Автор обновления', + ]; + } +}