after a quick look into it, the main problem is tax in a lot of places is based on the Total amount sold, not on each item.
I'm actually confused, aren't taxes a percentage? The sum of a percentage of all items should be the same as a percentage of the sum, no? Or is my brain not do math good? Can someone smarter than me explain?