I might be missing something, but I have a problem with my VAT calculation.
I have created a pricegroup with 25% VAT and the calculation for each order line is just fine. When I add one or more of a single item my basket totalt calculate just fine, but once I add more items to the basket the VAT calculation is messed up.
The basket subtotal is correct, but the VAT is not.
If I add one product with the price of 479,20 the VAT is calculated to 119,80, which is correct, but if I add a different product also with the price of 479,20, the subtotal is 958,40, but the VAT is still just 119,80, making the basket total 1078,20. It should have been 1198,00.
Looking in the database table when adding products with different prices, it seems the basket VAT is set to just the VAT of the last added product.
You're running a release a couple of versions old, 1.0.5.0 I believe. This version had the issue you describe. The VAT issue was fixed in version 1.0.5.1 (we're up to 1.0.5.3 as of writing this). If you update to the latest version you'll see the expected behavior.
Grab the latest version from www.ucommerce.dk/en/get-it-now.aspx
Updating is as easy as installing the new package on top of the existing one. uCommerce will figure out what to update for you.
As a side note extensive unit tests of the basket calculations were added to avoid issues like this in the future.
Wrong VAT calculation
Hi
I might be missing something, but I have a problem with my VAT calculation.
I have created a pricegroup with 25% VAT and the calculation for each order line is just fine. When I add one or more of a single item my basket totalt calculate just fine, but once I add more items to the basket the VAT calculation is messed up.
The basket subtotal is correct, but the VAT is not.
If I add one product with the price of 479,20 the VAT is calculated to 119,80, which is correct, but if I add a different product also with the price of 479,20, the subtotal is 958,40, but the VAT is still just 119,80, making the basket total 1078,20. It should have been 1198,00.
Looking in the database table when adding products with different prices, it seems the basket VAT is set to just the VAT of the last added product.
Please help.
Nicolai
Hi Nicolai,
You're running a release a couple of versions old, 1.0.5.0 I believe. This version had the issue you describe. The VAT issue was fixed in version 1.0.5.1 (we're up to 1.0.5.3 as of writing this). If you update to the latest version you'll see the expected behavior.
Grab the latest version from www.ucommerce.dk/en/get-it-now.aspx
Updating is as easy as installing the new package on top of the existing one. uCommerce will figure out what to update for you.
As a side note extensive unit tests of the basket calculations were added to avoid issues like this in the future.
Hi Søren
Thanks for the quick reply.
That fixed the issue. :)
Regard
Nicolai
is working on a reply...