[FIX] Amount_To_Text Corrected

lp bug: https://launchpad.net/bugs/453269 fixed

bzr revid: jvo@tinyerp.com-20100210060910-l9cujxcbbsl7rasl
This commit is contained in:
VRA(OpenERP) 2010-02-10 11:39:10 +05:30 committed by Jay (Open ERP)
parent 372673aeba
commit 9db12710fa
2 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ def french_number(val):
return ret
def amount_to_text_fr(number, currency):
number = '%.2f' % number
units_name = currency
list = str(number).split('.')
start_word = french_number(abs(int(list[0])))
@ -138,6 +139,7 @@ def dutch_number(val):
return ret
def amount_to_text_nl(number, currency):
number = '%.2f' % number
units_name = currency
list = str(number).split('.')
start_word = dutch_number(int(list[0]))

View File

@ -75,6 +75,7 @@ def english_number(val):
return ret
def amount_to_text(number, currency):
number = '%.2f' % number
units_name = currency
list = str(number).split('.')
start_word = english_number(int(list[0]))