瀏覽代碼

[Fix] Decimal issue

version-14
Rohit Waghchaure 7 年之前
父節點
當前提交
0a367e837e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/utils/data.py

+ 1
- 1
frappe/utils/data.py 查看文件

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



Loading…
取消
儲存