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:
Laurent Destailleur 2023-03-17 18:18:45 +01:00 committed by GitHub
commit 55bf52f3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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 = '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;

View File

@ -31,6 +31,8 @@ CREATE TABLE llx_product_lot (
scrapping_date datetime NULL, -- date when we decided to scrap all products of this lot
barcode varchar(180) DEFAULT NULL, -- barcode
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,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer,