From: marina Date: Mon, 26 Aug 2024 06:24:57 +0000 (+0300) Subject: ERP-85 Реализовать обмен данных с 1С Бухгалтерия X-Git-Tag: 1.4~22^2~19 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=fd169b66178e54b65a834a7d5ec84c3871d96eeb;p=erp24_rep%2Fyii-erp24%2F.git ERP-85 Реализовать обмен данных с 1С Бухгалтерия --- diff --git a/erp24/migrations/m240826_055119_change_motivation_table.php b/erp24/migrations/m240826_055119_change_motivation_table.php new file mode 100644 index 00000000..1263386a --- /dev/null +++ b/erp24/migrations/m240826_055119_change_motivation_table.php @@ -0,0 +1,31 @@ +addColumn('motivation_costs_items', 'is_weekly', $this->boolean()->comment('Еженедельный сбор')); + $this->addColumn('motivation_costs_items', 'is_combined', $this->boolean()->comment('Cбор помесячно из 1С Бух')); + $this->addColumn('motivation_costs_items', 'created_by', $this->integer()); + $this->addColumn('motivation_costs_items', 'updated_by', $this->integer()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->dropColumn('motivation_costs_items', 'is_weekly'); + $this->dropColumn('motivation_costs_items', 'is_combined'); + $this->dropColumn('motivation_costs_items', 'created_by'); + $this->dropColumn('motivation_costs_items', 'updated_by'); + } +} diff --git a/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php b/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php new file mode 100644 index 00000000..47509d35 --- /dev/null +++ b/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php @@ -0,0 +1,29 @@ +insert('motivation_value_group', [ + 'id' => 10, + 'name' => 'Месяц', + 'alias' => 'month' + ]); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->delete('motivation_value_group', ['alias' => 'month']); + } +}