[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:
parent
372673aeba
commit
9db12710fa
|
@ -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]))
|
||||
|
|
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue