2
0
forked from Wavyzz/dolibarr

Fix regression

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-02-05 13:09:06 +01:00
parent d97a91b83e
commit b1132131f3

View File

@@ -1375,7 +1375,7 @@ if (!$error && ($action == 'updateprice' && $confirm == 'yes') && $permissiontoa
}
} elseif (getDolGlobalString('PRODUIT_MULTIPRICES')) {
$maxlevel = getDolGlobalInt('PRODUIT_MULTIPRICES_LIMIT');
for ($level = 1; $level <= $malevel; $level++) {
for ($level = 1; $level <= $maxlevel; $level++) {
if ($object->price_base_type == 'TTC') {
$newprice = $object->multiprices_ttc[$level] * (100 + $pricepercentage) / 100;
$minprice = $object->multiprices_min_ttc[$level];