ソースを参照

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)



読み込み中…
キャンセル
保存