-
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.22
Hi, Nicolas I have discovered that when I have created a coupon and the "Auto load in cart if possible" is turned on inside a coupon it calculates a different tax amount than if that feature is turned off. I am almost 100% positive this is a bug. I spent hours looking at this.
Below is the correct calculation and price. Of the 2 items in the cart only the 50 Exterior wash tickets has a coupon of 30% and it is also the only item that is taxable amount of 6.75% of the 2 items in the cart. This is also with the "auto load in cart if possible" is turned off.
However, if I go in and turn on the "Auto load in cart if possible" for the coupon I get the below incorrect tax amount being charged.
Here are my settings for the coupon and the taxes below. I live in the United States so discounts are applied before taxes.
The calculation should be 375 x .30 = $112.5 . Then 375 - 112.5= $262.5. Then 262.5 x 0.675 = $17.72
As you notice the calculation without autoload calculates correctly. However, when the autoload the coupon is turned on it calculates the tax as $10.12. I am not sure where that number is even coming from. However, auto-loading the coupon should produce zero changes. Accidentally charging someone less tax than what they are supposed to charged can get you into major legal trouble in the United States. Please let me know how to fix this because this is a major issue for my client and I need to get this resolved as quickly as possible.
This message contains confidential information