Browse Source

Merge pull request #4665 from rohitwaghchaure/precision_issue

[Fix] Decimal issue
version-14
Prateeksha Singh 7 years ago
committed by GitHub
parent
commit
b9604a1ebb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/utils/data.py

+ 1
- 1
frappe/utils/data.py 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 fraction = frappe.db.get_value("Currency", currency, "fraction_units") or 100
precision = len(cstr(fraction)) - 1 precision = len(cstr(fraction)) - 1
else: else:
precision = 2
precision = number_format_precision
elif len(decimals) < precision: elif len(decimals) < precision:
precision = len(decimals) precision = len(decimals)




Loading…
Cancel
Save