VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: GJC Web Design on January 08, 2014, 13:28:29 PM

Title: Tax setting ignored on payment methods with a % fee of transaction?
Post by: GJC Web Design on January 08, 2014, 13:28:29 PM
Hi ,

just did a simple check with VAT enabled (developing another tax plugin) and it seems the setting for the Tax (e.g. Apply no rule) is ignored if you set a % charge

VAT ->10%
Cart value $100
with tax $110

payment fee 10% of value - in theory $11 ?

cart comes up with $12.22  - hmm - if the tax was wanted to be applied it should be 11 + %10 Vat = 12.10??? (don't quote me on this..  ;)

if I then choose to apply tax to the payment charge it adds another 10% on this already wrong figure
Tax -> $1.22 - total payment charge -> 13.44 

But as you can see the tax handling setting is ignored

If I apply a FIXED charge  - e.g. $10 then the setting works

VAT ->10%
Cart value $100
with tax $110

payment fee $10 of value

cart total $120  - correct

If I choose to apply the tax in the payment method with a fixed fee this also works correctly

gives payment charge $11.00 - also correct

[attachment cleanup by admin]