mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 13:38:27 +00:00
commonified in_words function
This commit is contained in:
@@ -46,10 +46,4 @@ def get_price_list_currency(args):
|
||||
if result and len(result)==1:
|
||||
return {"price_list_currency": result[0][0]}
|
||||
else:
|
||||
return {}
|
||||
|
||||
@webnotes.whitelist()
|
||||
def get_total_in_words(amount, currency):
|
||||
from webnotes.utils import money_in_words
|
||||
fraction = webnotes.conn.get_value("Currency", currency, "fraction")
|
||||
return money_in_words(amount, currency, fraction)
|
||||
return {}
|
||||
Reference in New Issue
Block a user