Frappe.utils.money_in_words is not working in Client Script


The following code is not working in Client Script:

    	n2w = frappe.utils.money_in_words(total, "INR") ;

any idea what is wrong with this? is there any alternate command for number to word?


Which version are you on? This function is not exposed in JavaScript, I think it’s only available in Python.

Hi, We are using version 15 on cloud. I tried it in Server Script as well, but is it giving “None type object is not callable” error.

Any sample command available?

Try format_currency source

format_currency(15.15, "USD", 2)
"$ 15.15"