From 6392c1f93e3c0bd5e122ab74ce7bc54b9da1f420 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 17:14:40 +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 --- htdocs/product/fiche.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index d87564a575f..71ada686b4f 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -658,7 +658,16 @@ if ($_GET["id"] || $_GET["ref"]) if($conf->global->PRODUIT_MULTIPRICES == 1) { print ''.$langs->trans("SellingPrice").' 1'; - print ''.price($product->price); + + if ($product->price_base_type == 'TTC') + { + print ''.price($product->price_ttc); + } + else + { + print ''.price($product->price); + } + print ' '.$langs->trans($product->price_base_type); print ''; for($i=2;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++)