Hi Dynamicweb,
We have a rather critical issue with prices on giftcards as the price is handled wrong if the data in the database is inclusive VAT.
In PriceCalculated.CalcPrice() I think that you are missing the part with red:
If PricesInDbVAT AndAlso Not IgnoreVat Then
If Base.ChkBoolean(Base.GetGs("/Globalsettings/Ecom/Price/UseSalesTaxGroupRateAsSystemTax")) Then
'Find product.vatgroup VAT percent
Dim VATCountry As Country = FindVATCountry()
Dim VATGroupValue As Double = VatGroupPercent(VATCountry)
If Not Double.IsNaN(VATGroupValue) Then
PricesInDbVATPercent = VATGroupValue
End If
End If
RawPrice = RemVAT(PriceRaw.Price, PricesInDbVATPercent)
Else
RawPrice = PriceRaw.Price
End If
Otherwise the VAT is deducted from the price even though you do not have VAT on gift cards
Best regards, Anders