Fix: wrong variable name
This commit is contained in:
parent
8ea3614a3c
commit
be7d545297
@ -2523,7 +2523,7 @@ function price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerou
|
|||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
if (empty($amount)) $amount=0; // To have a numeric value if amount not defined or = ''
|
if (empty($amount)) $amount=0; // To have a numeric value if amount not defined or = ''
|
||||||
$amount = (is_numeric($value)?$value:0); // Check if amount is numeric, for example, an error occured when amount value = o (letter) instead 0 (number)
|
$amount = (is_numeric($amount)?$amount:0); // Check if amount is numeric, for example, an error occured when amount value = o (letter) instead 0 (number)
|
||||||
if ($rounding < 0) $rounding=min($conf->global->MAIN_MAX_DECIMALS_UNIT,$conf->global->MAIN_MAX_DECIMALS_TOT);
|
if ($rounding < 0) $rounding=min($conf->global->MAIN_MAX_DECIMALS_UNIT,$conf->global->MAIN_MAX_DECIMALS_TOT);
|
||||||
|
|
||||||
$nbdecimal=$rounding;
|
$nbdecimal=$rounding;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user