From 6c7ea223294b8d688824cf9b2ed47e166a428595 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Sun, 1 Apr 2018 01:06:20 +0530 Subject: [PATCH] fix fmt_moeny --- frappe/utils/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/data.py b/frappe/utils/data.py index e97d7764bc..55f9b9929b 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -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))