From: marina Date: Tue, 27 Aug 2024 10:43:10 +0000 (+0300) Subject: ERP-85 Реализовать обмен данных с 1С Бухгалтерия X-Git-Tag: 1.4~22^2~6 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=fef407970639c892fc44f122173c522f02691b0b;p=erp24_rep%2Fyii-erp24%2F.git ERP-85 Реализовать обмен данных с 1С Бухгалтерия --- diff --git a/erp24/migrations/m240719_063451_create_table_motivation.php b/erp24/migrations/m240719_063451_create_table_motivation.php index 67e23283..fa7c467e 100755 --- a/erp24/migrations/m240719_063451_create_table_motivation.php +++ b/erp24/migrations/m240719_063451_create_table_motivation.php @@ -16,6 +16,7 @@ class m240719_063451_create_table_motivation extends Migration */ public function safeUp() { + return; $this->createTable(self::TABLE_NAME, [ 'id' => $this->primaryKey(), 'store_id' => $this->integer()->notNull()->comment('ID магазина'), diff --git a/erp24/migrations/m240722_054604_create_motivation_costs_items_table.php b/erp24/migrations/m240722_054604_create_motivation_costs_items_table.php index 9b1244bd..8ce1ff17 100644 --- a/erp24/migrations/m240722_054604_create_motivation_costs_items_table.php +++ b/erp24/migrations/m240722_054604_create_motivation_costs_items_table.php @@ -12,6 +12,7 @@ class m240722_054604_create_motivation_costs_items_table extends Migration */ public function safeUp() { + return; $this->execute('SET search_path TO erp24'); // Создаем тип ENUM diff --git a/erp24/migrations/m240729_081512_create_table_incoming_item.php b/erp24/migrations/m240729_081512_create_table_incoming_item.php index 8f18ace4..f5a097e5 100755 --- a/erp24/migrations/m240729_081512_create_table_incoming_item.php +++ b/erp24/migrations/m240729_081512_create_table_incoming_item.php @@ -14,6 +14,7 @@ class m240729_081512_create_table_incoming_item extends Migration */ public function safeUp() { + return; $this->createTable(self::TABLE_NAME, [ 'id' => $this->primaryKey(), 'incoming_id' => $this->string(36)->notNull()->comment('ID из таблицы incoming'), diff --git a/erp24/migrations/m240805_071431_create_api_cron_buh_table.php b/erp24/migrations/m240805_071431_create_api_cron_buh_table.php index 0bb353bd..551d6eac 100644 --- a/erp24/migrations/m240805_071431_create_api_cron_buh_table.php +++ b/erp24/migrations/m240805_071431_create_api_cron_buh_table.php @@ -12,6 +12,7 @@ class m240805_071431_create_api_cron_buh_table extends Migration */ public function safeUp() { + return; $this->createTable('{{%erp24.api_cron_buh}}', [ 'id' => $this->primaryKey(), 'date' => $this->dateTime()->notNull(), diff --git a/erp24/migrations/m240809_115844_insert_forecast_into_motivation_value_group.php b/erp24/migrations/m240809_115844_insert_forecast_into_motivation_value_group.php index 9498eb1b..6127410a 100755 --- a/erp24/migrations/m240809_115844_insert_forecast_into_motivation_value_group.php +++ b/erp24/migrations/m240809_115844_insert_forecast_into_motivation_value_group.php @@ -13,6 +13,7 @@ class m240809_115844_insert_forecast_into_motivation_value_group extends Migrati */ public function safeUp() { + return; $this->insert(self::TABLE_NAME, [ 'id' => 9, 'name' => 'Прогноз', diff --git a/erp24/migrations/m240815_081804_add_new_column_to_api_cron_buh.php b/erp24/migrations/m240815_081804_add_new_column_to_api_cron_buh.php index 2ab67604..c0a71635 100644 --- a/erp24/migrations/m240815_081804_add_new_column_to_api_cron_buh.php +++ b/erp24/migrations/m240815_081804_add_new_column_to_api_cron_buh.php @@ -12,6 +12,7 @@ class m240815_081804_add_new_column_to_api_cron_buh extends Migration */ public function safeUp() { + return; $this->dropColumn('api_cron_buh', 'request_id'); $this->addColumn('api_cron_buh', 'request_id', $this->string(36)->unique()->comment('ID запроса')); $this->addColumn('api_cron_buh', 'inn', $this->bigInteger()->comment('ИНН')); diff --git a/erp24/migrations/m240820_150742_create_table_motivation_buh.php b/erp24/migrations/m240820_150742_create_table_motivation_buh.php index acde2699..42436e91 100755 --- a/erp24/migrations/m240820_150742_create_table_motivation_buh.php +++ b/erp24/migrations/m240820_150742_create_table_motivation_buh.php @@ -15,6 +15,7 @@ class m240820_150742_create_table_motivation_buh extends Migration */ public function safeUp() { + return; $this->createTable(self::TABLE_NAME, [ 'id' => $this->primaryKey(), 'inn' => $this->integer()->notNull()->comment('ИНН фирмы источника данных'), diff --git a/erp24/migrations/m240821_114356_create_table_store_guid_buh.php b/erp24/migrations/m240821_114356_create_table_store_guid_buh.php index 96b06bf7..ea518842 100755 --- a/erp24/migrations/m240821_114356_create_table_store_guid_buh.php +++ b/erp24/migrations/m240821_114356_create_table_store_guid_buh.php @@ -14,6 +14,7 @@ class m240821_114356_create_table_store_guid_buh extends Migration */ public function safeUp() { + return true; $this->createTable(self::TABLE_NAME, [ 'id' => $this->primaryKey(), 'store_id' => $this->integer()->notNull()->comment('store id'), diff --git a/sql b/sql new file mode 100644 index 00000000..e69de29b