Update database
This commit is contained in:
parent
da1afa80cf
commit
cc26095467
@ -473,3 +473,6 @@ UPDATE llx_accounting_system SET fk_country = 12 WHERE pcg_version = 'PCG';
|
|||||||
|
|
||||||
-- May have error due to duplicate keys
|
-- May have error due to duplicate keys
|
||||||
ALTER TABLE llx_resource ADD UNIQUE INDEX uk_resource_ref (ref, entity);
|
ALTER TABLE llx_resource ADD UNIQUE INDEX uk_resource_ref (ref, entity);
|
||||||
|
|
||||||
|
ALTER TABLE llx_product ADD COLUMN accountancy_code_sell_intra varchar(32) AFTER accountancy_code_sell;
|
||||||
|
ALTER TABLE llx_product ADD COLUMN accountancy_code_sell_export varchar(32) AFTER accountancy_code_sell_intra;
|
||||||
|
|||||||
@ -48,10 +48,10 @@ create table llx_product
|
|||||||
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.
|
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), -- Default VAT rate of product
|
tva_tx double(6,3), -- Default VAT rate of product
|
||||||
recuperableonly integer NOT NULL DEFAULT '0', -- French NPR VAT
|
recuperableonly integer NOT NULL DEFAULT '0', -- French NPR VAT
|
||||||
localtax1_tx double(6,3) DEFAULT 0, --
|
localtax1_tx double(6,3) DEFAULT 0,
|
||||||
localtax1_type varchar(10) NOT NULL DEFAULT '0', --
|
localtax1_type varchar(10) NOT NULL DEFAULT '0',
|
||||||
localtax2_tx double(6,3) DEFAULT 0, --
|
localtax2_tx double(6,3) DEFAULT 0,
|
||||||
localtax2_type varchar(10) NOT NULL DEFAULT '0', --
|
localtax2_type varchar(10) NOT NULL DEFAULT '0',
|
||||||
fk_user_author integer DEFAULT NULL, -- user making creation
|
fk_user_author integer DEFAULT NULL, -- user making creation
|
||||||
fk_user_modif integer, -- user making last change
|
fk_user_modif integer, -- user making last change
|
||||||
tosell tinyint DEFAULT 1, -- Product you sell
|
tosell tinyint DEFAULT 1, -- Product you sell
|
||||||
@ -65,6 +65,8 @@ create table llx_product
|
|||||||
barcode varchar(255) DEFAULT NULL, -- barcode
|
barcode varchar(255) DEFAULT NULL, -- barcode
|
||||||
fk_barcode_type integer DEFAULT NULL, -- barcode type
|
fk_barcode_type integer DEFAULT NULL, -- barcode type
|
||||||
accountancy_code_sell varchar(32), -- Selling accountancy code
|
accountancy_code_sell varchar(32), -- Selling accountancy code
|
||||||
|
accountancy_code_sell_intra varchar(32), -- Selling accountancy code for vat intracommunity
|
||||||
|
accountancy_code_sell_export varchar(32), -- Selling accountancy code for vat export
|
||||||
accountancy_code_buy varchar(32), -- Buying accountancy code
|
accountancy_code_buy varchar(32), -- Buying accountancy code
|
||||||
partnumber varchar(32), -- Part/Serial number. TODO To use it into screen if not a duplicate of barcode.
|
partnumber varchar(32), -- Part/Serial number. TODO To use it into screen if not a duplicate of barcode.
|
||||||
weight float DEFAULT NULL,
|
weight float DEFAULT NULL,
|
||||||
@ -91,5 +93,5 @@ create table llx_product
|
|||||||
fk_price_expression integer, -- Link to the rule for dynamic price calculation
|
fk_price_expression integer, -- Link to the rule for dynamic price calculation
|
||||||
desiredstock integer DEFAULT 0,
|
desiredstock integer DEFAULT 0,
|
||||||
fk_unit integer DEFAULT NULL,
|
fk_unit integer DEFAULT NULL,
|
||||||
price_autogen TINYINT DEFAULT 0
|
price_autogen tinyint DEFAULT 0
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user