[FIX] tools.amount_to_text_en: now displays cents

bzr revid: olt@tinyerp.com-20090720093228-qqdqetrt2kg08coe
This commit is contained in:
Olivier Laurent 2009-07-20 11:32:28 +02:00
parent 2bb32450ab
commit f977c2ed4c
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ def amount_to_text(number, currency):
cents_number = int(number * 100) % 100
cents_name = (cents_number > 1) and 'cents' or 'cent'
cents = _100_to_text(cents_number)
cents = cents_number and '%s %s' % (cents, cents_name) or ''
cents = cents_number and '%s %s' % (cents.lower(), cents_name) or ''
if cents:
lacs += ' and %s' % (cents, )
return lacs