From 4271ecd880f472392883c8528c632b3625610a62 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 5 Sep 2007 09:34:07 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20liste=20d=E9roulante=20des=20tarifs=20f?= =?UTF-8?q?ournisseurs=20pour=20un=20produit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index f7f44e71e64..87f1e7431a2 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1284,8 +1284,14 @@ class Form $opt.= '>'.$objp->nom.' - '.$objp->ref_fourn.' - '; if ($objp->fprice != '') { - $opt.= price($objp->fprice); - $opt.= $langs->trans("Currency".$conf->monnaie)."/".$objp->quantity; + if ($objp->quantity == 1) + { + $opt.= price($objp->fprice); + $opt.= $langs->trans("Currency".$conf->monnaie)."/"; + } + + $opt.= $objp->quantity; + if ($objp->quantity == 1) { $opt.= strtolower($langs->trans("Unit"));