From 94c12cfb2e7df16adb926f966db8a8ac89d21259 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Mon, 22 Oct 2012 17:24:14 +0200 Subject: [PATCH] Task # 559 : start of price by quantity management --- htdocs/install/mysql/migration/3.2.0-3.3.0.sql | 14 ++++++++++++++ htdocs/langs/en_US/products.lang | 4 +++- htdocs/langs/fr_FR/products.lang | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/3.2.0-3.3.0.sql b/htdocs/install/mysql/migration/3.2.0-3.3.0.sql index 0600ddfe9a7..3eb339b57dd 100755 --- a/htdocs/install/mysql/migration/3.2.0-3.3.0.sql +++ b/htdocs/install/mysql/migration/3.2.0-3.3.0.sql @@ -781,3 +781,17 @@ ALTER TABLE llx_categorie MODIFY COLUMN label varchar(255) NOT NULL; ALTER TABLE llx_categorie ADD UNIQUE INDEX uk_categorie_ref (entity, fk_parent, label, type); ALTER TABLE llx_categorie ADD INDEX idx_categorie_type (type); ALTER TABLE llx_categorie ADD INDEX idx_categorie_label (label); + +-- [ task #559 ] Price by quantity management +CREATE TABLE llx_product_price_by_qty +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_product_price integer NOT NULL, + date_price timestamp, + price double (24,8) DEFAULT 0, + price_ttc double (24,8) DEFAULT NULL, + qty_min real DEFAULT 0, + qty_max real DEFAULT 99999 +)ENGINE=innodb; + +ALTER TABLE llx_product_price ADD price_by_qty INT NOT NULL DEFAULT 0; diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index 5c107a7e50b..8881ce278f9 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -180,4 +180,6 @@ AddThisServiceCard=Create service card HelpAddThisServiceCard=This option allows you to create or clone a service if it does not exist. CurrentProductPrice=Current price AlwaysUseNewPrice=Always use current price of product/service -AlwaysUseFixedPrice=Use the fixed price \ No newline at end of file +AlwaysUseFixedPrice=Use the fixed price +PriceByQuantity=Price by quantity +PriceByQuantityRange=Quantity range \ No newline at end of file diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 37c70e544d9..c641adee29a 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -180,4 +180,6 @@ AddThisServiceCard=Créer fiche service HelpAddThisServiceCard=Cette option permet de créer ou de cloner une fiche service si elle n'existe pas. CurrentProductPrice=Prix actuel AlwaysUseNewPrice=Toujours utiliser le prix du jour -AlwaysUseFixedPrice=Utiliser le prix fixé \ No newline at end of file +AlwaysUseFixedPrice=Utiliser le prix fixé +PriceByQuantity=Prix par quantité +PriceByQuantityRange=Grille de quantités \ No newline at end of file