From ef7ac60ef168e800c9e1e6f27d09c60bd5e34116 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 12:39:00 +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/price.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index ea593edd289..65be1149327 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -192,7 +192,15 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) print ''; if($conf->global->PRODUIT_MULTIPRICES == 1) { - print ''; + if ($product->price_base_type == 'TTC') + { + print ''; } @@ -200,13 +208,13 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) { print ''; if ($product->price_base_type == 'TTC') - { - print ''; } @@ -223,7 +231,15 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) print ''; print ''; print '
'.$langs->trans('SellingPrice').' 1'; + print '
'.$langs->trans('SellingPrice').' 1'; + } + else + { + print ''; + } print $html->select_PriceBaseType($product->price_base_type, "price_base_type"); print '
'.$langs->trans('SellingPrice').''; - } + { + print ''; + } else - { - print ''; - } + { + print ''; + } print $html->select_PriceBaseType($product->price_base_type, "price_base_type"); print '
'; - print ''; + if ($product->price_base_type == 'TTC') + { + print ''; print '
'.$langs->trans("SellingPrice").' '.$i.''; + print '
'.$langs->trans("SellingPrice").' '.$i.''; + } + else + { + print ''; + } print $html->select_PriceBaseType($product->price_base_type, "price_base_type_".$i); print '
 ';