Why the 'only' in the in_words output?

Why does Frappe add an “only.” at the end of the money conversion to words ?

Continuing discussion from issue(s) in GitHub:

Is it possible to add a configuration in database to specify if we want the “only.” to appear after the conversion in words ?
Should we just remove the _('only.') ?

2 Likes

This is related to the way you normally write cheques, it’s basically so that it is obvious if people add extra words to the end. It is old-fashioned and not sure it’s really necessary on electronic/printed documents where the value is written multiple times anyway.

At the very least it should be the following to allow translation:
_('only') + '.'

See my latest updates and let me know what you think:
https://github.com/frappe/frappe/pull/12408

1 Like