how to display grand total in arabic words

hello everyone i have been trying to display in sales invoice print grand total in arabic word i used this jijna code {{ frappe.utils.money_in_words(doc.grand_total) }} but it display it in english also tried {{ frappe.utils.money_in_words(doc.grand_total, doc.currency, β€˜ar’) }} same no result any help please

Try it.

{{ frappe.utils.money_in_words(doc.grand_total, "AED")}}

it did not work the result was " AED One Hundred And Nine Thousand, Six Hundred And Eighty Five and Seventy One Fils only." same in english

You need to select the language. Please check the image again; I have highlighted it in the top left corner.

yea i want to keep language english cuz if i changed it to arabic the whole format of the invoice will be mess

As far as I know it is not possible. If you want it in Arabic, you must set the language to Arabic.

1 Like