FIX Must show unit price when price is not for quantity 1

This commit is contained in:
Laurent Destailleur 2025-10-17 18:59:32 +02:00
parent 2139fdd9a2
commit f711fe9900

View file

@ -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
}