Skip to content
Snippets Groups Projects
Commit 56989ae5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add missing fields making not possible to enter reference price of

products into another currency
parent e2a7b094
No related branches found
No related tags found
No related merge requests found
...@@ -189,6 +189,22 @@ ALTER TABLE llx_cronjob ADD COLUMN processing integer NOT NULL DEFAULT 0; ...@@ -189,6 +189,22 @@ ALTER TABLE llx_cronjob ADD COLUMN processing integer NOT NULL DEFAULT 0;
ALTER TABLE llx_website ADD COLUMN fk_user_create integer; ALTER TABLE llx_website ADD COLUMN fk_user_create integer;
ALTER TABLE llx_website ADD COLUMN fk_user_modif integer; ALTER TABLE llx_website ADD COLUMN fk_user_modif integer;
-- Add missing fields making not possible to enter reference price of products into another currency
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_tx double(24,8) DEFAULT 1;
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_price_ttc double(24,8) DEFAULT NULL;
ALTER TABLE llx_product_fournisseur_price ADD COLUMN fk_multicurrency integer;
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_code varchar(255);
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_tx double(24,8) DEFAULT 1;
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_price double(24,8) DEFAULT NULL;
ALTER TABLE llx_product_fournisseur_price ADD COLUMN multicurrency_price_ttc double(24,8) DEFAULT NULL;
ALTER TABLE llx_product_fournisseur_price_log ADD COLUMN fk_multicurrency integer;
ALTER TABLE llx_product_fournisseur_price_log ADD COLUMN multicurrency_code varchar(255);
ALTER TABLE llx_product_fournisseur_price_log ADD COLUMN multicurrency_tx double(24,8) DEFAULT 1;
ALTER TABLE llx_product_fournisseur_price_log ADD COLUMN multicurrency_price double(24,8) DEFAULT NULL;
ALTER TABLE llx_product_fournisseur_price_log ADD COLUMN multicurrency_price_ttc double(24,8) DEFAULT NULL;
create table llx_payment_various create table llx_payment_various
( (
......
...@@ -43,5 +43,11 @@ create table llx_product_fournisseur_price ...@@ -43,5 +43,11 @@ create table llx_product_fournisseur_price
fk_supplier_price_expression integer, -- Link to the rule for dynamic price calculation fk_supplier_price_expression integer, -- Link to the rule for dynamic price calculation
import_key varchar(14), -- Import key import_key varchar(14), -- Import key
delivery_time_days integer, delivery_time_days integer,
supplier_reputation varchar(10) supplier_reputation varchar(10),
fk_multicurrency integer,
multicurrency_code varchar(255),
multicurrency_tx double(24,8) DEFAULT 1,
multicurrency_price double(24,8) DEFAULT NULL,
multicurrency_price_ttc double(24,8) DEFAULT NULL
)ENGINE=innodb; )ENGINE=innodb;
...@@ -24,6 +24,11 @@ create table llx_product_fournisseur_price_log ...@@ -24,6 +24,11 @@ create table llx_product_fournisseur_price_log
fk_product_fournisseur integer NOT NULL, fk_product_fournisseur integer NOT NULL,
price double(24,8) DEFAULT 0, price double(24,8) DEFAULT 0,
quantity double, quantity double,
fk_user integer fk_user integer,
fk_multicurrency integer,
multicurrency_code varchar(255),
multicurrency_tx double(24,8) DEFAULT 1,
multicurrency_price double(24,8) DEFAULT NULL,
multicurrency_price_ttc double(24,8) DEFAULT NULL
)ENGINE=innodb; )ENGINE=innodb;
...@@ -46,6 +46,9 @@ create table llx_product_price ...@@ -46,6 +46,9 @@ create table llx_product_price
fk_multicurrency integer, fk_multicurrency integer,
multicurrency_code varchar(255), multicurrency_code varchar(255),
multicurrency_price double(24,8) DEFAULT NULL multicurrency_tx double(24,8) DEFAULT 1,
multicurrency_price double(24,8) DEFAULT NULL,
multicurrency_price_ttc double(24,8) DEFAULT NULL
)ENGINE=innodb; )ENGINE=innodb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment