diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d6824ce682e..d23a4b0b46c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1389,8 +1389,8 @@ class Form } else { - $opt.= price($objp->price).' '.$currencytext."/".$objp->quantity; - $outval.= price($objp->price).' '.$currencytextnoent."/".$objp->quantity; + $opt.= price($objp->price * $objp->quantity).' '.$currencytext."/".$objp->quantity; + $outval.= price($objp->price * $objp->quantity).' '.$currencytextnoent."/".$objp->quantity; $opt.= $langs->trans("Units"); // Do not use strtolower because it breaks utf8 encoding $outval.=$langs->transnoentities("Units"); }