We have accelerator based on litium 7.4.2 upgraded to litium.7.6.1 where we have a strange problem.
When logged in as b2b the VAT om product and order are set to 0. Yes we want to display price without VAT but VAT should still be the same.
A simple similar setup in a clean 7.4.2 has VAT amount as expected.
Have you customized the price calculator?
Is both VAT amount and percentage 0 on the order rows?
What does it mean that a customer is logged in as a B2B customer? Can the same show channel show prices both with and without VAT?
We have not made any changes to price or VAT-calculations but we have one channel for both B2B and B2C and change cart.IncludeVAT = false when logged in as B2B and = true if logged in as B2C or not logged in.
Found some interesting code from the previous owner of the projekt that explains the faulty values.
There was a PriceWithOutVAT PriceCalculatorDecorator that instead of using the cart.IncludeVat always set Vat to 0 for all prices if connected to one or more organizations.
So if someone wonder about how to change between with or without VAT on a website for one customer or specific customers. You should use Cart.IncludeVAT and litium will handle all the calculations for you. But don’t miss that the order confirmation email is generated via a separate request so you need to also set Cart.IncludeVAT on that request only from the information on the order.
PriceCalculatorDecorator can instead be used if one want B2B organizations to only get prices from connected price list instead of default behaviour where you get price from all connected price list and all price list with no connections.