This commit is contained in:
parent
56bba71638
commit
39df6083ce
|
@ -57,7 +57,8 @@ def as_numeral_currency(number):
|
|||
if not number:
|
||||
return ''
|
||||
try:
|
||||
return num2words(unlazy(number), lang=get_language(), to='currency')
|
||||
# workaround newer num2words always specifiying cents
|
||||
return num2words(unlazy(number), lang=get_language(), to='currency').removesuffix(' et zéro centimes')
|
||||
except (TypeError, ValueError, decimal.InvalidOperation):
|
||||
return ''
|
||||
|
||||
|
|
Loading…
Reference in New Issue