fixes in total_in_words
This commit is contained in:
parent
479602234c
commit
14dc6c20bd
1 changed files with 1 additions and 1 deletions
|
|
@ -410,7 +410,7 @@ def money_in_words(number, main_currency = None, fraction_currency=None):
|
|||
if not main_currency:
|
||||
main_currency = d.get('currency', 'INR')
|
||||
if not fraction_currency:
|
||||
fraction_currency = d.get('fraction_currency', 'paise')
|
||||
fraction_currency = webnotes.conn.get_value("Currency", main_currency, "fraction") or "cent"
|
||||
|
||||
n = "%.2f" % flt(number)
|
||||
main, fraction = n.split('.')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue