fix fmt_moeny
This commit is contained in:
parent
1ac98702dd
commit
6c7ea22329
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ def fmt_money(amount, precision=None, currency=None):
|
|||
precision = len(cstr(fraction)) - 1
|
||||
else:
|
||||
precision = number_format_precision
|
||||
elif len(decimals) < precision:
|
||||
elif len(decimals) <= precision:
|
||||
precision = len(decimals)
|
||||
|
||||
amount = '%.*f' % (precision, round(flt(amount), precision))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue