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? * 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.) * 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? [1] http://hg.tryton.org/1.8/modules/currency/file/9087d8922511/currency.py#l163 [2] http://en.wikipedia.org/wiki/Rounding#Round_half_to_even [3] http://en.wikipedia.org/wiki/Rounding#Round_half_up Regards -- Udo Spallek ------------------------------------ virtual things Preisler & Spallek GbR Munich - Aix-la-Chapelle Windeckstr. 77 81375 Munich - Germany Tel: +49 (89) 710 481 55 Fax: +49 (89) 710 481 56 [email protected] http://www.virtual-things.biz -- [email protected] mailing list
