Fix regression
This commit is contained in:
parent
380fd37430
commit
74eccf279d
1 changed files with 2 additions and 2 deletions
|
|
@ -7124,13 +7124,13 @@ function price($amount, $form = 0, $outlangs = '', $trunc = 1, $rounding = -1, $
|
|||
}
|
||||
|
||||
// If force rounding
|
||||
if ((string) $forcerounding != '-1') {
|
||||
if ((string) $forcerounding != '-1' && (string) $forcerounding != '') {
|
||||
if ($forcerounding === 'MU') {
|
||||
$nbdecimal = getDolGlobalInt('MAIN_MAX_DECIMALS_UNIT');
|
||||
} elseif ($forcerounding === 'MT') {
|
||||
$nbdecimal = getDolGlobalInt('MAIN_MAX_DECIMALS_TOT');
|
||||
} elseif ($forcerounding >= 0) {
|
||||
$nbdecimal = $forcerounding;
|
||||
$nbdecimal = (int) $forcerounding;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue