From fb25f479f2818205fb15950ab88c6e4b212e6629 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 4 Aug 2015 13:39:01 +0200 Subject: [PATCH] unit price not used if qty = 1 this line is too long for add unused information --- 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 5287155357f..682abdd66d1 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2110,7 +2110,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