瀏覽代碼

Merge pull request #4665 from rohitwaghchaure/precision_issue

[Fix] Decimal issue
version-14
Prateeksha Singh 7 年之前
committed by GitHub
父節點
當前提交
b9604a1ebb
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 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…
取消
儲存