diff --git a/htdocs/install/mysql/tables/llx_product_customer_price_log.sql b/htdocs/install/mysql/tables/llx_product_customer_price_log.sql index 3844b3e332f..deec2ac78b5 100644 --- a/htdocs/install/mysql/tables/llx_product_customer_price_log.sql +++ b/htdocs/install/mysql/tables/llx_product_customer_price_log.sql @@ -18,6 +18,8 @@ -- -- ============================================================================ +-- To log changes of prices per customer (llx_product_customer_price) + create table llx_product_customer_price_log ( rowid integer AUTO_INCREMENT PRIMARY KEY, @@ -25,7 +27,6 @@ create table llx_product_customer_price_log datec datetime, fk_product integer NOT NULL, fk_soc integer DEFAULT 0 NOT NULL, - price_level smallint NULL DEFAULT 1, price double(24,8) DEFAULT 0, price_ttc double(24,8) DEFAULT 0, price_min double(24,8) DEFAULT 0, diff --git a/htdocs/install/mysql/tables/llx_product_price.sql b/htdocs/install/mysql/tables/llx_product_price.sql index a7f9ba38751..4e5920e1dff 100755 --- a/htdocs/install/mysql/tables/llx_product_price.sql +++ b/htdocs/install/mysql/tables/llx_product_price.sql @@ -18,6 +18,9 @@ -- -- ============================================================================ +-- To save customer prices (one price per product or several prices per segment/level) +-- TODO We should introduce table llx_product_price_log to store changes and keep in this table only last current price ! + create table llx_product_price ( rowid integer AUTO_INCREMENT PRIMARY KEY,