I've set up VAT @20% on the site, and debugged through a product page. product Price WithVat/ WithoutVat/ etc. all show correct values.
However, I've ticked 'IncludingVat' in the uWebshop settings. When reading the product/ price out, it shows correctly (I entered 96, shows 80 and 16 for with/ vat)
However, when I use the BasketHandler, passing the product id in, it adds VAT to the 96, giving 115 (approx). The BasketHandler doesn't seem to check the 'IncludingVat' setting at all.
Is there anything different I should be doing, or is this a code issue?
Vat added twice when adding to basket
I've set up VAT @20% on the site, and debugged through a product page. product Price WithVat/ WithoutVat/ etc. all show correct values.
However, I've ticked 'IncludingVat' in the uWebshop settings. When reading the product/ price out, it shows correctly (I entered 96, shows 80 and 16 for with/ vat)
However, when I use the BasketHandler, passing the product id in, it adds VAT to the 96, giving 115 (approx). The BasketHandler doesn't seem to check the 'IncludingVat' setting at all.
Is there anything different I should be doing, or is this a code issue?
What i did was, i went into the backend files of the oderdetails.html and changed
{{ CurrentOrder.ChargedOrderAmount.ToCurrencyString}}
TO
{{ (CurrentOrder.OrderLineTotal.WithVat.Value + CurrentOrder.ShippingProviderAmount.WithoutVat.Value)}}
And since the AngularJS API and c# API have the same functionality with the same function names, this is possible to do in the other files aswell.
Hope it helps
Casper
is working on a reply...