- last update
over 1 year ago 785 pass - Issue created by @bpstr
- 🇪🇸Spain dcraig91
Hello, thanks you very much for the patch is working perfectly for me
- Status changed to Closed: won't fix
about 1 year ago 4:35pm 10 October 2023 - 🇷🇸Serbia bojanz
This is by design.
There are two equally legal ways of calculating tax: per-unit (where you apply the percentage to the unit price, then round) and per-total (where you apply the percentage to the total price, then round). Commerce 2.x (and most ERPs) use the second way. The upside of this approach is much better promotion logic, especially when prices include tax (this never worked right in 7.x-1.x). The downside is that there is no guarantee that the rounded unit price times quantity will be equal to the rounded total price..
Your approach tries to reset the approach back to the first way, as used in 7.x-1.x. We can't do that, as that would break promotions, and many other parts of the system built with the same assumption.