FIX Must show unit price when price is not for quantity 1
This commit is contained in:
parent
2139fdd9a2
commit
f711fe9900
1 changed files with 1 additions and 1 deletions
|
|
@ -4168,7 +4168,7 @@ class Form
|
|||
$outvallabel .= ' ' . $langs->transnoentities("Units");
|
||||
}
|
||||
|
||||
if ($objp->quantity > 1) {
|
||||
if ($objp->quantity != 1) {
|
||||
$optlabel .= " (" . price($objp->unitprice * (getDolGlobalString('DISPLAY_DISCOUNTED_SUPPLIER_PRICE') ? (1 - $objp->remise_percent / 100) : 1), 1, $langs, 0, 0, -1, $conf->currency) . "/" . $langs->trans("Unit") . ")"; // Do not use strtolower because it breaks utf8 encoding
|
||||
$outvallabel .= " (" . price($objp->unitprice * (getDolGlobalString('DISPLAY_DISCOUNTED_SUPPLIER_PRICE') ? (1 - $objp->remise_percent / 100) : 1), 0, $langs, 0, 0, -1, $conf->currency) . "/" . $langs->transnoentities("Unit") . ")"; // Do not use strtolower because it breaks utf8 encoding
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue