On 08/11/10 19:07 +0100, Udo Spallek wrote:
> Hi,
> 
> Tryton uses the round half to even method for currencies[1], aka bankers
> rounding[2]. In Germany we use another rounding, called round half
> up[3].
> 
> Example
> -------
> 
> A net amount of an invoice has 1257,50 EUR. The tax is 19%.
> 
> Exact Total Amount = 1257,50 * 1,19 = 1496,425 EUR
> 
> Total Amount Tryton = 1496,42
> 
> Total Amount Germany = 1496,43
> 
> Questions
> ---------
> 
> * Are there other nations using round half up, like used in Germany?

I don't know.

> * At least for Germany we need an upstream module which fix this issue. 
>   Is such a module welcome? (I will write it and put on codereview.)

Yes of course.

> * The name of the module could be currency_round_half_up and just 
>   overwrite the default value of the round method signature. Is this 
>   the way to go?

Looks good.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpiczq70KoFA.pgp
Description: PGP signature

Reply via email to