How to access money_in_words method in javascript

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.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/562c94ce-a90f-4a17-87ea-4a6ad2a649e6%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
You got it right - you will have to whitelist it and use a call.

- Rushabh

On Thursday, February 20, 2014 11:02:30 AM UTC+5:30, Syed Qadeer wrote:
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.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8bdc2ca7-2329-4dcc-bbe1-9568960e54a3%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.