Re-positioning Currency in Amount in Words

Hi All,

I read quite a bit to be sure this has not been addressed before. Couldn’t find the solution I’m looking for.

Currently in ERPNext if my total figure is $3,000,55, the amount in words reads

USD Three Thousand and Fifty Five Cent only.

How do I change the position of the currency in the entire system so the documents read,

Three Thousand Dollars and Fifty Five Cent only?

Notice Dollars is not at the beginning but it now appears after the the whole number (but before the decimal figure).

Your kind, urgent response will be appreciated?

I think that you have to change this line a little bit.

It should be something like this
out = _(in_words(main, in_million).title()) + ' ' + main_currency

Thanks for reaching out. I tried your suggestion but nothing changed.

Thanks. Really appreciate it.

Did you try bench restart && bench migrate.
Because most probably migrate command will compile the python file.

I have tried bench restart && bench migrate, still didn’t work.

Help guys, please.

Perhaps rebuild recompile the code may help?

frappe@erpnext:~/frappe-bench$ bench build
frappe@erpnext:~/frappe-bench$ find . -name '*.pyc' -delete

Thanks for the advice. I will try it out.