You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
The issue is that when using the Avatax module, the tax summary in checkout is rounded to two decimal places.
Preconditions
Magento 2.2.3
avalara/avatax 15.5.2
PHP 7.0.31
Steps to reproduce
Prepare an order, go to checkout, set shipping to Quebec.
Get tax summary to display (configure in the backend of magento if needed)
Note that QST is shown as 9.98, where it should be 9.975
To test Magento Core taxes, to contrast the display, set up the following:
4.1 In Tax Zones and Rates create two rates, for Canada - QC, Rates 5 and 9.975
4.2 In Tax Rules create two, one for the 9.975 one for the 5, have the priorities differ and set to calculate off subtotal only
5 Disable Avalara, and go to checkout, view that 9.975 shows instead of 9.98
Expected result
Tax should not be rounded as such, or options should be provided to specify the precision.
Actual result
Tax comes in from Avalara correctly, 0.0975 / 9.975%
Tax gets rounded somewhere in the module.
Tax Summary return in totals section during the update call is rounded
Remove Avalara and using Magento taxes correctly shows 9.975
Avalara Taxes:
Ajax call which shows that the percent is rounded before getting to the frontend
Magento Taxes:
My Tax Config for testing core vs Avalara
The text was updated successfully, but these errors were encountered:
@StephenBadger - I've identified the place in the code where I can make the necessary change to keep the rate from being rounded to 2 decimal places. Just to be clear, you aren't indicating that the tax calculation is off, only that the displayed rate is rounded, correct?
The issue is that when using the Avatax module, the tax summary in checkout is rounded to two decimal places.
Preconditions
Steps to reproduce
4.1 In Tax Zones and Rates create two rates, for Canada - QC, Rates 5 and 9.975
4.2 In Tax Rules create two, one for the 9.975 one for the 5, have the priorities differ and set to calculate off subtotal only
5 Disable Avalara, and go to checkout, view that 9.975 shows instead of 9.98
Expected result
Actual result
Avalara Taxes:
![image](https://user-images.githubusercontent.com/19933966/45954483-1ec88180-bfdb-11e8-9006-3f6fe8a66835.png)
Ajax call which shows that the percent is rounded before getting to the frontend
![image](https://user-images.githubusercontent.com/19933966/45955052-e9249800-bfdc-11e8-93ff-d309471e561a.png)
Magento Taxes:
![image](https://user-images.githubusercontent.com/19933966/45954857-348a7680-bfdc-11e8-8445-1e761a0ea853.png)
My Tax Config for testing core vs Avalara
The text was updated successfully, but these errors were encountered: