Qual: Uniformize table structure
This commit is contained in:
parent
88517555b6
commit
96f1f41c83
@ -90,6 +90,7 @@ ALTER TABLE llx_product_stock add column location varchar(32);
|
||||
ALTER TABLE llx_facture MODIFY tva double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture MODIFY total double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture MODIFY total_ttc double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture MODIFY amount double(24,8) DEFAULT 0 NOT NULL;
|
||||
|
||||
ALTER TABLE llx_facturedet MODIFY tva_tx double(6,3);
|
||||
ALTER TABLE llx_facturedet MODIFY subprice double(24,8);
|
||||
@ -101,6 +102,7 @@ ALTER TABLE llx_facturedet MODIFY total_ttc double(24,8);
|
||||
ALTER TABLE llx_facture_rec MODIFY tva double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture_rec MODIFY total double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture_rec MODIFY total_ttc double(24,8) DEFAULT 0;
|
||||
ALTER TABLE llx_facture_rec MODIFY amount double(24,8) DEFAULT 0 NOT NULL;
|
||||
|
||||
ALTER TABLE llx_facturedet_rec MODIFY tva_tx double(6,3);
|
||||
ALTER TABLE llx_facturedet_rec MODIFY subprice double(24,8);
|
||||
|
||||
@ -36,7 +36,7 @@ create table llx_facture
|
||||
date_valid date, -- date de validation
|
||||
tms timestamp, -- date creation/modification
|
||||
paye smallint DEFAULT 0 NOT NULL,
|
||||
amount real DEFAULT 0 NOT NULL,
|
||||
amount double(24,8) DEFAULT 0 NOT NULL,
|
||||
remise_percent real DEFAULT 0, -- remise relative
|
||||
remise_absolue real DEFAULT 0, -- remise absolue
|
||||
remise real DEFAULT 0, -- remise totale calculee
|
||||
|
||||
@ -29,15 +29,15 @@ create table llx_facture_rec
|
||||
fk_soc integer NOT NULL,
|
||||
datec datetime, -- date de creation
|
||||
|
||||
amount real DEFAULT 0 NOT NULL,
|
||||
amount double(24,8) DEFAULT 0 NOT NULL,
|
||||
remise real DEFAULT 0,
|
||||
remise_percent real DEFAULT 0,
|
||||
remise_absolue real DEFAULT 0,
|
||||
tva real DEFAULT 0,
|
||||
tva double(24,8) DEFAULT 0,
|
||||
localtax1 double(24,8) DEFAULT 0, -- amount localtax1
|
||||
localtax2 double(24,8) DEFAULT 0, -- amount localtax2
|
||||
total real DEFAULT 0,
|
||||
total_ttc real DEFAULT 0,
|
||||
total double(24,8) DEFAULT 0,
|
||||
total_ttc double(24,8) DEFAULT 0,
|
||||
|
||||
fk_user_author integer, -- createur
|
||||
fk_projet integer, -- projet auquel est associe la facture
|
||||
|
||||
Loading…
Reference in New Issue
Block a user