From a4c3e07689c16ff5b85680f016523715a17416c1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 11:36:03 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20ajout=20gestion=20du=20HT=20et=20TTC?= =?UTF-8?q?=20avec=20l'option=20multiprix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.0.0-2.1.0.sql | 2 ++ mysql/tables/llx_product_price.sql | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index a195551f16b..b583469613a 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -615,3 +615,5 @@ create table llx_product_subproduct fk_product_subproduct integer NOT NULL, -- id du sous-produit UNIQUE(fk_product, fk_product_subproduct) )type=innodb; + +alter table llx_product_price add column price_base_type varchar(3) DEFAULT 'HT' after price; \ No newline at end of file diff --git a/mysql/tables/llx_product_price.sql b/mysql/tables/llx_product_price.sql index 928f440f1a8..03e2737fb40 100644 --- a/mysql/tables/llx_product_price.sql +++ b/mysql/tables/llx_product_price.sql @@ -26,8 +26,9 @@ create table llx_product_price tms timestamp, fk_product integer NOT NULL, date_price datetime NOT NULL, - price_level tinyint(4) NULL DEFAULT 1, + price_level tinyint(4) NULL DEFAULT 1, price double, + price_base_type varchar(3) DEFAULT 'HT', tva_tx double NOT NULL, fk_user_author integer, envente tinyint DEFAULT 1