llx_c_productbatch_status to migration and translatable strings

This commit is contained in:
altairis-noe 2021-04-27 15:55:51 +02:00
parent 86812c13ee
commit 9fc67275fd
2 changed files with 13 additions and 2 deletions

View File

@ -23,6 +23,6 @@
-- de l'install et tous les sigles '--' sont supprimés.
--
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('OK', 'En état de marche', 1);
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('KO', 'Hors dusage', 1);
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('OK', 'InWorkingOrder', 1);
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('KO', 'OutOfOrder', 1);

View File

@ -141,6 +141,17 @@ CREATE TABLE llx_workstation_workstation_usergroup(
fk_workstation integer
) ENGINE=innodb;
CREATE TABLE llx_c_producbatch_status(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
code varchar(16) NOT NULL,
label varchar(50) NOT NULL,
active integer DEFAULT 1 NOT NULL
) ENGINE=innodb;
ALTER TABLE llx_c_productbatch_status ADD UNIQUE INDEX uk_c_productbatch_status(code);
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('OK', 'InWorkingOrder', 1);
INSERT INTO llx_c_productbatch_status (code, label, active) VALUES ('KO', 'OutOfOrder', 1);
ALTER TABLE llx_product_customer_price ADD COLUMN ref_customer varchar(30);
ALTER TABLE llx_product_customer_price_log ADD COLUMN ref_customer varchar(30);