From 140d2aa1cd9e06fc7189c3ecc49dc392b76bdb12 Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Thu, 9 Oct 2025 19:35:18 +0300 Subject: [PATCH] Add required fields for standalone reception and e-reporting (#35694) * Add required fields for e-reporting * Add required fields for e-reporting --- htdocs/install/mysql/migration/22.0.0-23.0.0.sql | 4 ++++ .../install/mysql/tables/llx_receptiondet_batch.sql | 13 ++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql index 7f0fc7ff536..635099b6b3f 100644 --- a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql +++ b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql @@ -234,4 +234,8 @@ ALTER TABLE llx_accounting_bookkeeping_piece ADD INDEX idx_accounting_bookkeepin ALTER TABLE llx_mailing ADD COLUMN fk_project integer DEFAULT NULL; UPDATE llx_c_units SET label = 'unitP' WHERE code = 'P'; + +ALTER TABLE llx_receptiondet_batch ADD COLUMN description text AFTER fk_product; +ALTER TABLE llx_receptiondet_batch ADD COLUMN fk_unit integer AFTER qty; +ALTER TABLE llx_receptiondet_batch ADD COLUMN rang integer DEFAULT 0 AFTER cost_price; -- end of migration diff --git a/htdocs/install/mysql/tables/llx_receptiondet_batch.sql b/htdocs/install/mysql/tables/llx_receptiondet_batch.sql index 13e3935a39a..8217fe16caa 100644 --- a/htdocs/install/mysql/tables/llx_receptiondet_batch.sql +++ b/htdocs/install/mysql/tables/llx_receptiondet_batch.sql @@ -30,11 +30,13 @@ create table llx_receptiondet_batch fk_elementdet integer, -- ID of line of main source object. element_type varchar(50) DEFAULT 'supplier_order' NOT NULL, -- Type of source object ('supplier_order', ...) fk_product integer, - qty float, -- qty to move - fk_entrepot integer, -- ID of warehouse to use for the stock change + description text, -- Product description/label of non origin + qty float, -- qty to move + fk_unit integer, -- ID of unit code + fk_entrepot integer, -- ID of warehouse to use for the stock change fk_projet integer DEFAULT NULL, - comment varchar(255), -- comment on movement - batch varchar(128) DEFAULT NULL, -- serial/lot number + comment varchar(255), -- comment on movement + batch varchar(128) DEFAULT NULL, -- serial/lot number eatby date DEFAULT NULL, sellby date DEFAULT NULL, status integer, @@ -42,5 +44,6 @@ create table llx_receptiondet_batch datec datetime, tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, cost_price double(24,8) DEFAULT 0, - extraparams varchar(255) -- to stock other parameters in json format + rang integer DEFAULT 0, -- Position of line + extraparams varchar(255) -- to stock other parameters in json format )ENGINE=innodb;