Add the vat_code on all table of prices
This commit is contained in:
parent
00758e515a
commit
5d18aad15f
@ -111,4 +111,6 @@ ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_invoic
|
|||||||
|
|
||||||
UPDATE llx_const set value='moono-lisa' where value = 'moono' AND name = 'FCKEDITOR_SKIN';
|
UPDATE llx_const set value='moono-lisa' where value = 'moono' AND name = 'FCKEDITOR_SKIN';
|
||||||
|
|
||||||
|
ALTER TABLE llx_product_price ADD COLUMN default_vat_code varchar(10) after tva_tx;
|
||||||
|
ALTER TABLE llx_product_fournisseur_price ADD COLUMN default_vat_code varchar(10) after tva_tx;
|
||||||
|
|
||||||
|
|||||||
@ -36,6 +36,7 @@ create table llx_product_fournisseur_price
|
|||||||
unitprice double(24,8) DEFAULT 0,
|
unitprice double(24,8) DEFAULT 0,
|
||||||
charges double(24,8) DEFAULT 0, -- to store transport cost. Constant PRODUCT_CHARGES must be set to see it.
|
charges double(24,8) DEFAULT 0, -- to store transport cost. Constant PRODUCT_CHARGES must be set to see it.
|
||||||
unitcharges double(24,8) DEFAULT 0, -- deprecated
|
unitcharges double(24,8) DEFAULT 0, -- deprecated
|
||||||
|
default_vat_code varchar(10),
|
||||||
tva_tx double(6,3) NOT NULL,
|
tva_tx double(6,3) NOT NULL,
|
||||||
info_bits integer NOT NULL DEFAULT 0,
|
info_bits integer NOT NULL DEFAULT 0,
|
||||||
fk_user integer,
|
fk_user integer,
|
||||||
|
|||||||
@ -31,6 +31,7 @@ create table llx_product_price
|
|||||||
price_min double(24,8) default NULL,
|
price_min double(24,8) default NULL,
|
||||||
price_min_ttc double(24,8) default NULL,
|
price_min_ttc double(24,8) default NULL,
|
||||||
price_base_type varchar(3) DEFAULT 'HT',
|
price_base_type varchar(3) DEFAULT 'HT',
|
||||||
|
default_vat_code varchar(10), -- Same code than into table llx_c_tva (but no constraints). Should be used in priority to find default vat, npr, localtaxes for product.
|
||||||
tva_tx double(6,3) NOT NULL,
|
tva_tx double(6,3) NOT NULL,
|
||||||
recuperableonly integer NOT NULL DEFAULT '0',
|
recuperableonly integer NOT NULL DEFAULT '0',
|
||||||
localtax1_tx double(6,3) DEFAULT 0,
|
localtax1_tx double(6,3) DEFAULT 0,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user