Litium accelerator 7.4.2 no VAT for B2B user

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.

Price in pricelist is 500 including VAT

Price in cart is is 400 excluding VAT and VAT is zero.

Litium version: 7.6.1

Are the tax classes or standard tax set on the country for the channel?

yes country is norway and standard tax = 25 and default = 25

i found this on docs but NO isn’t in the zerotax list.
https://docs.litium.com/documentation/litium-documentation/sales/pricing_rules_1/calculating_vat/customizing-vat-calculator

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.

A simple setup of accelerator i guess only have one country. we have sweden and norway

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.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.