Revert bad change
This commit is contained in:
parent
c398450f27
commit
927da89c89
@ -18,6 +18,8 @@
|
|||||||
--
|
--
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
|
|
||||||
|
-- To log changes of prices per customer (llx_product_customer_price)
|
||||||
|
|
||||||
create table llx_product_customer_price_log
|
create table llx_product_customer_price_log
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
@ -25,7 +27,6 @@ create table llx_product_customer_price_log
|
|||||||
datec datetime,
|
datec datetime,
|
||||||
fk_product integer NOT NULL,
|
fk_product integer NOT NULL,
|
||||||
fk_soc integer DEFAULT 0 NOT NULL,
|
fk_soc integer DEFAULT 0 NOT NULL,
|
||||||
price_level smallint NULL DEFAULT 1,
|
|
||||||
price double(24,8) DEFAULT 0,
|
price double(24,8) DEFAULT 0,
|
||||||
price_ttc double(24,8) DEFAULT 0,
|
price_ttc double(24,8) DEFAULT 0,
|
||||||
price_min double(24,8) DEFAULT 0,
|
price_min double(24,8) DEFAULT 0,
|
||||||
|
|||||||
@ -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
|
create table llx_product_price
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user