소스 검색

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



불러오는 중...
취소
저장