For countries like Australia, all sale prices are inclusive of tax (GST).
Unfortunately, uc_vat and uc_taxes assumes sell price is exclusive of tax, hence applies the tax rate as if it was addititive (eg: 10%, it uses 1.1 or 0.1) instead of 9.0909%. Even though uc_vat supports "inclusive tax price", it does not adjust the tax rate for this calculation.
_Without_ this patch, uc_vat (and uc_taxes) assumes this is how tax is calculated:
sale price exclusive of tax: tax = sale price * tax rate (eg: 10%)
sale price inclusive of tax: tax = sale price * tax rate (eg: 10%)
_With_ this patch, this is how tax is calculated:
sale price exclusive of tax: tax = sale price * tax rate (eg: 10%)
sale price inclusive of tax: tax = sale price * tax rate (eg: 9.090909%)
This also caused a problem with the uc_paypal module (http://drupal.org/node/1300976) where paypal rejects any transactions where AMT != ITMAMT + TAXAMT.
Comment | File | Size | Author |
---|---|---|---|
uc_taxes_inclusive_fix.patch | 668 bytes | dsobon | |
uc_vat_inclusive_fix.patch | 603 bytes | dsobon |
Comments
Comment #1
ngs_mtech CreditAttribution: ngs_mtech commentedThis patch do not handle proprerly complex vat configurations beetween sell prices and order line item taxes-.
My products has tax included, but my shipping line items don't have it.
regards.
Comment #2
sarhansg CreditAttribution: sarhansg commentedI've run both patches with hopes of fixing my issue (http://drupal.org/node/1368150). I'll try installing 6.x-1.2 and update you on the results.
Comment #3
sarhansg CreditAttribution: sarhansg commentedTested the patches and they appear to work. However, they tax amount shown on Cart, Checkout and Review Order pages are still incorrect.
Comment #4
meandrew CreditAttribution: meandrew commentedis there any news on this issue?
Comment #5
meandrew CreditAttribution: meandrew commentedI am finding this incredibly difficult to comprehend why the uc_vat is supported and up to date yet there are so many issues with the module???
Is there a fixed working solution for vat?
Why is there a uc_tax module and a uc_vat module, the vat appears to be for display purposes only?
Thanks
Comment #6
meandrew CreditAttribution: meandrew commentedso the patch doesn't work! how can it appear to work but show the wrong calculations
Comment #7
droomagentur CreditAttribution: droomagentur commentedfor me, those two patches fixed it - thanks a lot, you saved my day!