fixed AmountHelper bug where values without decimal points don't get properly formatted
This commit is contained in:
parent
3d5cfac462
commit
a0bd169924
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ class AmountHelper extends Helper {
|
|||
$value .= '.' . substr($right, 0, 2);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$value = number_format($value, 2, '', $thousandsSeparator);
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
|
Loading…
Reference in a new issue