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

#   Error applying VAT when using general discount

##

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

Less More

- Posts: 187
- Thank you received: 10
-
-

11 years 10 months ago [\#187194](#187194) by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")  Replied by *[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")* on topic *[Error applying VAT when using general discount](/forum/40-taxes/873969-error-applying-vat-when-using-general-discount?start=20#187194 "-- HikaShop version -- : 2,3,5 -- Joomla version -- : 3.3.5 -- PHP version -- : 5,4  Just setup the new VAT rules (thanks for the easy way to do this) and found something that seems an bug.  we had one product that had a 10% discount applied. For my country (NL) all 3 rates are set to charge 21% VAT. VAT system set to FLOAT.  That works fine but if I enable the discount I get funny issues: companies with VAT suddenly need to pay an extra 21% Individuals don't pay VAT etc.  Seems the general discount is interfering with the prices and how VAT is calculated.")*

Hi Jerome,

1. To avoid these pingpong messages I gave you access to one of the sites (taotraining.nl) days ago. See your PM
2. I have also asked to send me complete files or zipped dir. to avoid copy/paste errors and stay in sync with what you are testing. Way too much room for error with a forum full of changes. Lets make sure we can rule out these things.

I am now in trouble for more than two weeks with all the shops and it would be good to finish this up.
For security the screenshots:

Coupon setting:
[ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;04.png](/forum/attachment/21782) ](/forum/attachment/21782 "...t&#95;09&#95;46&#95;04.png")

[ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;20.png](/forum/attachment/21783) ](/forum/attachment/21783 "...t&#95;09&#95;46&#95;20.png")

Tax config:

[ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;52.png](/forum/attachment/21784) ](/forum/attachment/21784 "...t&#95;09&#95;46&#95;52.png")

- [ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;04.png](/forum/attachment/21782) ](/forum/attachment/21782 "...t&#95;09&#95;46&#95;04.png") [ ](/forum/attachment/21782?download=1 "...t&#95;09&#95;46&#95;04.png")
- [ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;20.png](/forum/attachment/21783) ](/forum/attachment/21783 "...t&#95;09&#95;46&#95;20.png") [ ](/forum/attachment/21783?download=1 "...t&#95;09&#95;46&#95;20.png")
- [ ![Screen&#95;Shot&#95;2015-01-18&#95;at&#95;09&#95;46&#95;52.png](/forum/attachment/21784) ](/forum/attachment/21784 "...t&#95;09&#95;46&#95;52.png") [ ](/forum/attachment/21784?download=1 "...t&#95;09&#95;46&#95;52.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzg3Mzk2OS1lcnJvci1hcHBseWluZy12YXQtd2hlbi11c2luZy1nZW5lcmFsLWRpc2NvdW50P3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

11 years 10 months ago [\#187246](#187246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error applying VAT when using general discount](/forum/40-taxes/873969-error-applying-vat-when-using-general-discount?start=20#187246 "-- HikaShop version -- : 2,3,5 -- Joomla version -- : 3.3.5 -- PHP version -- : 5,4  Just setup the new VAT rules (thanks for the easy way to do this) and found something that seems an bug.  we had one product that had a 10% discount applied. For my country (NL) all 3 rates are set to charge 21% VAT. VAT system set to FLOAT.  That works fine but if I enable the discount I get funny issues: companies with VAT suddenly need to pay an extra 21% Individuals don't pay VAT etc.  Seems the general discount is interfering with the prices and how VAT is calculated.")*

Hi,

There is only one file we worked one (where all the taxes calculations are made.
It's the file administrator/components/com_hikashop/classes/currency.php
Here attached the latest version we have on our end.
*This attachment is hidden for guests.
Please log in or register to see it.*

Remember that the "Floating tax prices" is a new option which didn't exist before and so just turn it off and you'll have the exact same working solution as before since we didn't didn't anything with the calculations when that option is turned off.

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

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

Less More

- Posts: 187
- Thank you received: 10
-
-

11 years 10 months ago [\#187332](#187332) by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")  Replied by *[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")* on topic *[Error applying VAT when using general discount](/forum/40-taxes/873969-error-applying-vat-when-using-general-discount?start=20#187332 "-- HikaShop version -- : 2,3,5 -- Joomla version -- : 3.3.5 -- PHP version -- : 5,4  Just setup the new VAT rules (thanks for the easy way to do this) and found something that seems an bug.  we had one product that had a 10% discount applied. For my country (NL) all 3 rates are set to charge 21% VAT. VAT system set to FLOAT.  That works fine but if I enable the discount I get funny issues: companies with VAT suddenly need to pay an extra 21% Individuals don't pay VAT etc.  Seems the general discount is interfering with the prices and how VAT is calculated.")*

Thanks Nicolas. Just want to make sure we are testing the exact same setup.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzg3Mzk2OS1lcnJvci1hcHBseWluZy12YXQtd2hlbi11c2luZy1nZW5lcmFsLWRpc2NvdW50P3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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.057 seconds

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