how to access money_in_words method in javascript

37 views
Skip to first unread message

Syed Qadeer

unread,
Feb 20, 2014, 12:32:30 AM2/20/14
to erpnext-dev...@googlegroups.com
Hello All,

i wanted to access the money_in_words method from the client-side javascript, but i noticed that this method is not @webnotes.whitelist()
so do you think that i need to add @webnotes.whitelist()  and create a separate wn.call to convert a money to words ??

well, i know i can use doc.in_words or doc.in_words_export , but this is for my own internal usage that i want this method to be whitelisted.

so what do you guys suggest, that do i have to make it whitelist and create a wn.call to convert it (OR) ERPNEXT comes with some method to convert the money in words ??

thanks.

rushabh

unread,
Feb 20, 2014, 11:30:01 AM2/20/14
to erpnext-dev...@googlegroups.com
You got it right - you will have to whitelist it and use a call.

- Rushabh
Reply all
Reply to author
Forward
0 new messages