I looked in the code and understand what you are saying. I do pass
"dollar" instead of "dollars". However, what if I pass
amount_to_text(1.50,'en','dollars'), then it will print out:
one dollars and fifty cents
But it should be "one dollar and fifty cents".
I believe that making dollar plural should be done in the function
amount_to_text. Would this be possible?
Thanks,
Leigh
vra (openerp) wrote:
> Hello Leigh Willard,
>
> It is not the problem of amount_to_text_en.py, because in word
> conversion it will concatenate currency name or code which you have
> passed when you did call this function so simply pass dollars instead
> of only dollar if you pass company currency code or name simple change
> the currency code or name which you did pass from Financial
> Management/Configuration/Currencies menu.
>
> Hope this will help you.
>
> Thanks.
>
>
I looked in the code and understand what you are saying. I do pass to_text( 1.50,'en' ,'dollars' ), then it will print out:
"dollar" instead of "dollars". However, what if I pass
amount_
one dollars and fifty cents
But it should be "one dollar and fifty cents".
I believe that making dollar plural should be done in the function
amount_to_text. Would this be possible?
Thanks,
Leigh
vra (openerp) wrote: to_text_ en.py, because in word Configuration/ Currencies menu.
> Hello Leigh Willard,
>
> It is not the problem of amount_
> conversion it will concatenate currency name or code which you have
> passed when you did call this function so simply pass dollars instead
> of only dollar if you pass company currency code or name simple change
> the currency code or name which you did pass from Financial
> Management/
>
> Hope this will help you.
>
> Thanks.
>
>