Skip to content

Commit

Permalink
unit price not used if qty = 1
Browse files Browse the repository at this point in the history
this line is too long for add unused information
  • Loading branch information
defrance committed Aug 4, 2015
1 parent 1dac193 commit fb25f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -2110,7 +2110,7 @@ function select_produits_fournisseurs_list($socid,$selected='',$htmlname='produc
$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
Expand Down

0 comments on commit fb25f47

Please sign in to comment.