Message 74570

Author
nicoe
Date
2022-03-16.17:43:44
Message id
74570

Content

Due to the rounding operated on each tax in the TaxableMixin's _round_taxes method a loss of precision might result in a total price that is not the correct one.

Here's an example (a bit artificial but easier to understand):

Tax1 of 10%
Tax2 of 10%
The amount tax included is 1.25, it will result in a base amount of 1.0417

The current implementation will lose 0.01 and thus the amount tax included will be 1.24.

History
Date User Action Args
2022-03-16 17:43:44nicoesetmessageid: <1647449024.2920158.AYQD72L7WI226QH7.issue11317@tryton.org>
2022-03-16 17:43:44nicoelinkissue11317 messages
2022-03-16 17:43:44nicoecreate

Showing 10 items. Show all history (warning: this could be VERY long)