Posted on 30/03/2023 15:41:18
Hi Aki,
Yes, I believe the VAT template tags should return zero, if reverse charge for VAT is enabled.
- Does the solution have live integration or any custom providers that might affect prices?
- Was the carts created using the shopping cart app on a page or by using the web api?
- Was the carts created before or after changing the reverse charge settings?
- Can you provide some more details, preferably a dump of data for the order and order lines?
Try to execute the following sql statement (replace the where condition) and then post the results here:
SELECT
OrderId, OrderDate, OrderVATCountryCode, OrderCustomerAccessUserId, OrderReverseChargeForVat, CountryReverseChargeForVAT, AccessUserReverseChargeForVat, OrderVAT, OrderPriceVAT, OrderShippingFeeVAT, OrderPaymentFeeVAT, OrderTotalDiscountVAT,
OrderLineId, OrderLineType, OrderLineBOM, OrderLineReverseChargeForVat, OrderLinePriceVAT, OrderLineUnitPriceVAT, OrderLineTotalDiscountVAT
FROM EcomOrders
LEFT JOIN AccessUser ON OrderCustomerAccessUserId = AccessUserId
LEFT JOIN EcomCountries ON OrderVATCountryCode = CountryCode2
LEFT JOIN EcomOrderLines ON OrderId = OrderLineOrderId
WHERE OrderId = 'YOUR ORDER ID HERE'
Maybe that can tell us more about why the values are not zero.
/Morten