diff --git a/frappe/utils/data.py b/frappe/utils/data.py index c01c31c2a1..c1026b7807 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -1518,18 +1518,12 @@ def money_in_words( out = _(main_currency, context="Currency") + " " + _("Zero") # 0.XX elif main == "0": - out = _(in_words(fraction, in_million).title()) + " " + fraction_currency + out = in_words(fraction, in_million).title() + " " + fraction_currency else: - out = _(main_currency, context="Currency") + " " + _(in_words(main, in_million).title()) + out = _(main_currency, context="Currency") + " " + in_words(main, in_million).title() if cint(fraction): out = ( - out - + " " - + _("and") - + " " - + _(in_words(fraction, in_million).title()) - + " " - + fraction_currency + out + " " + _("and") + " " + in_words(fraction, in_million).title() + " " + fraction_currency ) return _("{0} only.", context="Money in words").format(out)