Revert bad change

This commit is contained in:
Laurent Destailleur 2017-08-22 11:52:34 +02:00
parent c398450f27
commit 927da89c89
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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,