From 2c791e528d0c58cc64b8baebc87532cd3afa9b5e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Aug 2015 23:15:32 +0200 Subject: [PATCH] Revert "unit price not used if qty = 1" This reverts commit fb25f479f2818205fb15950ab88c6e4b212e6629. --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 31f1372b18e..7efae8effc3 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2112,7 +2112,7 @@ class Form $outval.= ' '.$langs->transnoentities("Units"); } - if ($objp->quantity > 1) + if ($objp->quantity >= 1) { $opt.=" (".price($objp->unitprice,1,$langs,0,0,-1,$conf->currency)."/".$langs->trans("Unit").")"; // Do not use strtolower because it breaks utf8 encoding $outval.=" (".price($objp->unitprice,0,$langs,0,0,-1,$conf->currency)."/".$langs->transnoentities("Unit").")"; // Do not use strtolower because it breaks utf8 encoding