Browse Source

Revert "unit price not used if qty = 1"

This reverts commit fb25f479f2818205fb15950ab88c6e4b212e6629.
Laurent Destailleur 10 years ago
parent
commit
2c791e528d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/core/class/html.form.class.php

+ 1 - 1
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