소스 검색

[hot] fixed ValueError: need more than 1 value to unpack for vnd currency (#3489)

version-14
Makarand Bauskar 8 년 전
committed by Nabin Hait
부모
커밋
6b28e1b9e0
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      frappe/utils/data.py

+ 3
- 1
frappe/utils/data.py 파일 보기

@@ -441,7 +441,9 @@ def money_in_words(number, main_currency = None, fraction_currency=None):
fraction_length = get_number_format_info(number_format)[2]

n = "%.{0}f".format(fraction_length) % number
main, fraction = n.split('.')

numbers = n.split('.')
main, fraction = numbers if len(numbers) > 1 else [n, '00']

if len(fraction) < fraction_length:
zeros = '0' * (fraction_length - len(fraction))


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