fix fmt_moeny

This commit is contained in:
Achilles Rasquinha 2018-04-01 01:06:20 +05:30
parent 1ac98702dd
commit 6c7ea22329

View file

@ -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))