Merge pull request #24235 from OPEN-DSI/develop_generate_document_on_product_batch_sql
NEW: Generate documents on product batch (SQL)
This commit is contained in:
commit
55bf52f3f0
@ -373,4 +373,7 @@ UPDATE llx_c_country SET numeric_code = '262' WHERE code_iso = 'DJI';
|
|||||||
UPDATE llx_c_country SET numeric_code = '894' WHERE code_iso = 'ZMB';
|
UPDATE llx_c_country SET numeric_code = '894' WHERE code_iso = 'ZMB';
|
||||||
UPDATE llx_c_country SET numeric_code = '716' WHERE code_iso = 'ZWE';
|
UPDATE llx_c_country SET numeric_code = '716' WHERE code_iso = 'ZWE';
|
||||||
|
|
||||||
|
-- Generate documents on product batch
|
||||||
|
ALTER TABLE llx_product_lot ADD COLUMN model_pdf varchar(255) AFTER scrapping_date;
|
||||||
|
ALTER TABLE llx_product_lot ADD COLUMN last_main_doc varchar(255) AFTER model_pdf;
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,8 @@ CREATE TABLE llx_product_lot (
|
|||||||
scrapping_date datetime NULL, -- date when we decided to scrap all products of this lot
|
scrapping_date datetime NULL, -- date when we decided to scrap all products of this lot
|
||||||
barcode varchar(180) DEFAULT NULL, -- barcode
|
barcode varchar(180) DEFAULT NULL, -- barcode
|
||||||
fk_barcode_type integer DEFAULT NULL, -- barcode type
|
fk_barcode_type integer DEFAULT NULL, -- barcode type
|
||||||
|
model_pdf varchar(255),
|
||||||
|
last_main_doc varchar(255), -- relative filepath+filename of last main generated document
|
||||||
datec datetime,
|
datec datetime,
|
||||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
fk_user_creat integer,
|
fk_user_creat integer,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user