openfoodfoundation / wishlist

This repository welcomes ideas and suggestions to improve the OFN software.
3 stars 0 forks source link

VAT calculation issue on the Australian invoice (and so French one) when price includes tax #329

Open myriamboure opened 7 years ago

myriamboure commented 7 years ago

Is it me, or is there an obvious issue in the calculation of the VAT amount in all invoices? In this example (I took the australian invoice model not to get anyone confused)

screenshot from 2017-03-24 17-56-10

The price set up is 1,80 for each Kg carrot, and the price is set up as "including VAT" so 3,60 for 2. Tax rate is 5,5%, so the amount excl tax should be 3,60/1,055=3,41, and not 3,44...

I don't know if it's a rounding issue, but it's not "exact", I don't think we'll have any issue with the tax authorities for that, but I don't think that's just a rounding issue here, it's more than 1 cts discussed here: https://community.openfoodnetwork.org/t/tax-calculation-issue/547/4

Am I right? Do you have the same issue in Aus @sstead ?

myriamboure commented 7 years ago

I think @oeoeaio you have worked on some previous VAT rounding issues, so mentioning you here, maybe you have a quick answer to that. Cheers :-)