Fix column definition

This commit is contained in:
Laurent Destailleur 2019-03-09 02:05:28 +01:00
parent 799271daa5
commit 10b9fdc1fd
2 changed files with 2 additions and 2 deletions

View File

@ -240,5 +240,5 @@ ALTER TABLE llx_facturedet_rec ADD COLUMN fk_user_author integer;
ALTER TABLE llx_facturedet_rec ADD COLUMN fk_user_modif integer; ALTER TABLE llx_facturedet_rec ADD COLUMN fk_user_modif integer;
ALTER TABLE llx_expensereport_det MODIFY COLUMN value_unit double(24,8) NOT NULL; ALTER TABLE llx_expensereport_det MODIFY COLUMN value_unit double(24,8) NOT NULL;
ALTER TABLE llx_expensereport_det ADD COLUMN subprice double(24,8) NOT NULL after qty; ALTER TABLE llx_expensereport_det ADD COLUMN subprice double(24,8) DEFAULT 0 NOT NULL after qty;

View File

@ -27,7 +27,7 @@ CREATE TABLE llx_expensereport_det
comments text NOT NULL, comments text NOT NULL,
product_type integer DEFAULT -1, product_type integer DEFAULT -1,
qty real NOT NULL, qty real NOT NULL,
subprice double(24,8), -- P.U. HT (example 100) subprice double(24,8) DEFAULT 0 NOT NULL, -- P.U. HT (example 100)
value_unit double(24,8) NOT NULL, -- P.U. TTC (example 120) value_unit double(24,8) NOT NULL, -- P.U. TTC (example 120)
remise_percent real, remise_percent real,
vat_src_code varchar(10) DEFAULT '', -- Vat code used as source of vat fields. Not strict foreign key here. vat_src_code varchar(10) DEFAULT '', -- Vat code used as source of vat fields. Not strict foreign key here.