[Skip to main content](#vessel-content)

#   Issue with "Floating Tax prices". VAT is not subtracted when selling B2B

##

- **[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")**
- [![tgdkere2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8136-tgdkere2 "View tgdkere2's Profile") Topic Author
- [ Offline](/forum/user/8136-tgdkere2)

Less More

- Posts: 82
- Thank you received: 5
-
-

3 years 2 weeks ago [\#356466](#356466) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  *[Issue with "Floating Tax prices". VAT is not subtracted when selling B2B](/forum/40-taxes/907244-issue-with-floating-tax-prices-vat-is-not-subtracted-when-selling-b2b#356466 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.12  Hi,  We have the VAT online check active (Europe).  So, when a customer registers his VAT number, the prices should be without VAT (exkl. VAT), since it is a B2B sale.  In normal VAT mode (not floating tax), this is working properly.  However, if &quot;Floating Tax prices&quot; is configured, the VAT is not removed from the price.  Is this a bug or how can this be fixed, so that the VAT amount is subtracted from the price.  Thanks and br")* was created by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")*

-- HikaShop version -- : 4.7.3
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4.12

Hi,

We have the VAT online check active (Europe).

So, when a customer registers his VAT number, the prices should be without VAT (exkl. VAT), since it is a B2B sale.

In normal VAT mode (not floating tax), this is working properly.

However, if "Floating Tax prices" is configured, the VAT is not removed from the price.

Is this a bug or how can this be fixed, so that the VAT amount is subtracted from the price.

Thanks and br

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzI0NC1pc3N1ZS13aXRoLWZsb2F0aW5nLXRheC1wcmljZXMtdmF0LWlzLW5vdC1zdWJ0cmFjdGVkLXdoZW4tc2VsbGluZy1iMmI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86578
- Thank you received: 14321
-
-

3 years 2 weeks ago [\#356480](#356480) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Issue with "Floating Tax prices". VAT is not subtracted when selling B2B](/forum/40-taxes/907244-issue-with-floating-tax-prices-vat-is-not-subtracted-when-selling-b2b#356480 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.12  Hi,  We have the VAT online check active (Europe).  So, when a customer registers his VAT number, the prices should be without VAT (exkl. VAT), since it is a B2B sale.  In normal VAT mode (not floating tax), this is working properly.  However, if &quot;Floating Tax prices&quot; is configured, the VAT is not removed from the price.  Is this a bug or how can this be fixed, so that the VAT amount is subtracted from the price.  Thanks and br")*

Hi,

The goal of having this "floating tax prices" setting turned on is that the end price is always the same, regardless of taxes.
So for example, if you have a price at 10€, whether the taxes are 20%, 10%, 5% or 0%, the end price will always be 10€, and it's the price without taxes and the taxes amount which will vary to accommodate this.

Knowing that, when I read

> if "Floating Tax prices" is configured, the VAT is not removed from the price.

in your message, it seems to me that HikaShop does exactly what it is supposed to in this mode and that you actually might not want to turn on that setting if that's not what you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzI0NC1pc3N1ZS13aXRoLWZsb2F0aW5nLXRheC1wcmljZXMtdmF0LWlzLW5vdC1zdWJ0cmFjdGVkLXdoZW4tc2VsbGluZy1iMmI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")**
- [![tgdkere2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8136-tgdkere2 "View tgdkere2's Profile") Topic Author
- [ Offline](/forum/user/8136-tgdkere2)

Less More

- Posts: 82
- Thank you received: 5
-
-

3 years 1 week ago -  3 years 1 week ago [\#356599](#356599) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Issue with "Floating Tax prices". VAT is not subtracted when selling B2B](/forum/40-taxes/907244-issue-with-floating-tax-prices-vat-is-not-subtracted-when-selling-b2b#356599 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.12  Hi,  We have the VAT online check active (Europe).  So, when a customer registers his VAT number, the prices should be without VAT (exkl. VAT), since it is a B2B sale.  In normal VAT mode (not floating tax), this is working properly.  However, if &quot;Floating Tax prices&quot; is configured, the VAT is not removed from the price.  Is this a bug or how can this be fixed, so that the VAT amount is subtracted from the price.  Thanks and br")*

What we need is:

Floating tax prices, so the price incl. taxes is always the same, no matter where the customer is.

**But if a customer enters his VAT number, then the corresponding VAT for his country should be deducted.**

Even with floating tax enabled, the VAT and net price is listed in the order separately.

How can we achieve that the TAX is removed if it is a B2B sale with valid VAT number entered and floating tax prices active ??

Thank you and best regards

Last edit: 3 years 1 week ago by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzI0NC1pc3N1ZS13aXRoLWZsb2F0aW5nLXRheC1wcmljZXMtdmF0LWlzLW5vdC1zdWJ0cmFjdGVkLXdoZW4tc2VsbGluZy1iMmI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86578
- Thank you received: 14321
-
-

3 years 1 week ago [\#356603](#356603) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Issue with "Floating Tax prices". VAT is not subtracted when selling B2B](/forum/40-taxes/907244-issue-with-floating-tax-prices-vat-is-not-subtracted-when-selling-b2b#356603 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.12  Hi,  We have the VAT online check active (Europe).  So, when a customer registers his VAT number, the prices should be without VAT (exkl. VAT), since it is a B2B sale.  In normal VAT mode (not floating tax), this is working properly.  However, if &quot;Floating Tax prices&quot; is configured, the VAT is not removed from the price.  Is this a bug or how can this be fixed, so that the VAT amount is subtracted from the price.  Thanks and br")*

Hi,

I don't see a way to do that with the current system with just the options available.

This would require the development of a plugin to add a fee to the cart which would be the negative amount of the taxes if the current user is a company with a tax number.
The plugin would implement the onAfterCartShippingLoad event:
[ www.hikashop.com/support/documentation/6...fterCartShippingLoad](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterCartShippingLoad)
And checking the type of the current user is quite easy : Code:

$currencyClass = hikashop_get('class.currency'); $type = $currencyClass-&gt;getTaxType(); if($type=='company_with_vat_number') { // code }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzI0NC1pc3N1ZS13aXRoLWZsb2F0aW5nLXRheC1wcmljZXMtdmF0LWlzLW5vdC1zdWJ0cmFjdGVkLXdoZW4tc2VsbGluZy1iMmI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
