Increase batch number to 128
This commit is contained in:
parent
04f0cdac18
commit
e937b22721
@ -31,7 +31,7 @@ create table llx_commande_fournisseur_dispatch
|
||||
fk_entrepot integer,
|
||||
fk_user integer,
|
||||
comment varchar(255), -- comment on movement
|
||||
batch varchar(30) DEFAULT NULL,
|
||||
batch varchar(128) DEFAULT NULL,
|
||||
eatby date DEFAULT NULL,
|
||||
sellby date DEFAULT NULL,
|
||||
status integer,
|
||||
|
||||
@ -20,7 +20,7 @@ CREATE TABLE llx_expeditiondet_batch (
|
||||
fk_expeditiondet int NOT NULL,
|
||||
eatby date DEFAULT NULL,
|
||||
sellby date DEFAULT NULL,
|
||||
batch varchar(30) DEFAULT NULL,
|
||||
batch varchar(128) DEFAULT NULL,
|
||||
qty double NOT NULL DEFAULT '0',
|
||||
fk_origin_stock integer NOT NULL
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
@ -25,7 +25,7 @@ tms timestamp,
|
||||
fk_inventory integer DEFAULT 0,
|
||||
fk_warehouse 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_view double DEFAULT NULL, -- must be filled once regulation is done
|
||||
qty_regulated double DEFAULT NULL -- must be filled once regulation is done
|
||||
|
||||
@ -23,7 +23,7 @@ CREATE TABLE llx_mrp_production(
|
||||
qty real NOT NULL DEFAULT 1,
|
||||
qty_frozen 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)
|
||||
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
|
||||
|
||||
@ -24,7 +24,7 @@ CREATE TABLE llx_product_batch (
|
||||
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
|
||||
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,
|
||||
import_key varchar(14) DEFAULT NULL
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
@ -21,7 +21,7 @@ CREATE TABLE llx_product_lot (
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1,
|
||||
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
|
||||
sellby date DEFAULT NULL, -- Sellby date
|
||||
datec datetime,
|
||||
|
||||
@ -21,9 +21,9 @@ create table llx_stock_mouvement
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datem datetime, -- Date and hour of movement
|
||||
datem datetime, -- Date and hour of movement
|
||||
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)
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user