[Fix] Decimal issue

This commit is contained in:
Rohit Waghchaure 2017-12-21 15:16:05 +05:30
parent 7dad1a35e9
commit 0a367e837e

View file

@ -381,7 +381,7 @@ def fmt_money(amount, precision=None, currency=None):
fraction = frappe.db.get_value("Currency", currency, "fraction_units") or 100
precision = len(cstr(fraction)) - 1
else:
precision = 2
precision = number_format_precision
elif len(decimals) < precision:
precision = len(decimals)