Increase batch number to 128

This commit is contained in:
Laurent Destailleur 2020-03-25 19:34:52 +01:00
parent 04f0cdac18
commit e937b22721
7 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ create table llx_commande_fournisseur_dispatch
fk_entrepot integer, fk_entrepot integer,
fk_user integer, fk_user integer,
comment varchar(255), -- comment on movement comment varchar(255), -- comment on movement
batch varchar(30) DEFAULT NULL, batch varchar(128) DEFAULT NULL,
eatby date DEFAULT NULL, eatby date DEFAULT NULL,
sellby date DEFAULT NULL, sellby date DEFAULT NULL,
status integer, status integer,

View File

@ -20,7 +20,7 @@ CREATE TABLE llx_expeditiondet_batch (
fk_expeditiondet int NOT NULL, fk_expeditiondet int NOT NULL,
eatby date DEFAULT NULL, eatby date DEFAULT NULL,
sellby date DEFAULT NULL, sellby date DEFAULT NULL,
batch varchar(30) DEFAULT NULL, batch varchar(128) DEFAULT NULL,
qty double NOT NULL DEFAULT '0', qty double NOT NULL DEFAULT '0',
fk_origin_stock integer NOT NULL fk_origin_stock integer NOT NULL
) ENGINE=InnoDB; ) ENGINE=InnoDB;

View File

@ -25,7 +25,7 @@ tms timestamp,
fk_inventory integer DEFAULT 0, fk_inventory integer DEFAULT 0,
fk_warehouse integer DEFAULT 0, fk_warehouse integer DEFAULT 0,
fk_product integer DEFAULT 0, fk_product integer DEFAULT 0,
batch varchar(30) DEFAULT NULL, -- Lot or serial number batch varchar(128) DEFAULT NULL, -- Lot or serial number
qty_stock double DEFAULT NULL, -- The targeted value. can be filled during draft edition qty_stock double DEFAULT NULL, -- The targeted value. can be filled during draft edition
qty_view double DEFAULT NULL, -- must be filled once regulation is done qty_view double DEFAULT NULL, -- must be filled once regulation is done
qty_regulated double DEFAULT NULL -- must be filled once regulation is done qty_regulated double DEFAULT NULL -- must be filled once regulation is done

View File

@ -23,7 +23,7 @@ CREATE TABLE llx_mrp_production(
qty real NOT NULL DEFAULT 1, qty real NOT NULL DEFAULT 1,
qty_frozen smallint DEFAULT 0, qty_frozen smallint DEFAULT 0,
disable_stock_change smallint DEFAULT 0, disable_stock_change smallint DEFAULT 0,
batch varchar(30), batch varchar(128),
role varchar(10), -- 'toconsume' or 'toproduce' (initialized at MO creation), 'consumed' or 'produced' (added after MO validation) role varchar(10), -- 'toconsume' or 'toproduce' (initialized at MO creation), 'consumed' or 'produced' (added after MO validation)
fk_mrp_production integer, -- if role = 'consumed', id of line with role 'toconsume', if role = 'produced' id of line with role 'toproduce' fk_mrp_production integer, -- if role = 'consumed', id of line with role 'toconsume', if role = 'produced' id of line with role 'toproduce'
fk_stock_movement integer, -- id of stock movement when movements are validated fk_stock_movement integer, -- id of stock movement when movements are validated

View File

@ -24,7 +24,7 @@ CREATE TABLE llx_product_batch (
fk_product_stock integer NOT NULL, fk_product_stock integer NOT NULL,
eatby datetime DEFAULT NULL, -- deprecated. should not be used here but should be stored into a table llx_product_lot eatby datetime DEFAULT NULL, -- deprecated. should not be used here but should be stored into a table llx_product_lot
sellby datetime DEFAULT NULL, -- deprecated. should not be used here but should be stored into a table llx_product_lot sellby datetime DEFAULT NULL, -- deprecated. should not be used here but should be stored into a table llx_product_lot
batch varchar(30) NOT NULL, batch varchar(128) NOT NULL,
qty double NOT NULL DEFAULT 0, qty double NOT NULL DEFAULT 0,
import_key varchar(14) DEFAULT NULL import_key varchar(14) DEFAULT NULL
) ENGINE=InnoDB; ) ENGINE=InnoDB;

View File

@ -21,7 +21,7 @@ CREATE TABLE llx_product_lot (
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
entity integer DEFAULT 1, entity integer DEFAULT 1,
fk_product integer NOT NULL, -- Id of product fk_product integer NOT NULL, -- Id of product
batch varchar(30) DEFAULT NULL, -- Lot or serial number batch varchar(128) DEFAULT NULL, -- Lot or serial number
eatby date DEFAULT NULL, -- Eatby date eatby date DEFAULT NULL, -- Eatby date
sellby date DEFAULT NULL, -- Sellby date sellby date DEFAULT NULL, -- Sellby date
datec datetime, datec datetime,

View File

@ -21,9 +21,9 @@ create table llx_stock_mouvement
( (
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp, tms timestamp,
datem datetime, -- Date and hour of movement datem datetime, -- Date and hour of movement
fk_product integer NOT NULL, -- Id of product fk_product integer NOT NULL, -- Id of product
batch varchar(30) DEFAULT NULL, -- Lot or serial number batch varchar(128) DEFAULT NULL, -- Lot or serial number
eatby date DEFAULT NULL, -- Eatby date (deprecated, we should get value from batch number in table llx_product_lot) eatby date DEFAULT NULL, -- Eatby date (deprecated, we should get value from batch number in table llx_product_lot)
sellby date DEFAULT NULL, -- Sellby date (deprecated, we should get value from batch number in table llx_product_lot) sellby date DEFAULT NULL, -- Sellby date (deprecated, we should get value from batch number in table llx_product_lot)
fk_entrepot integer NOT NULL, -- Id warehouse fk_entrepot integer NOT NULL, -- Id warehouse