-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Tax rate + 100% discount results in negative grand total #10790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @dankocherga, Thanks for reporting this issue. Unfortunately, I could not reproduce the issue as you described it. |
@dankocherga Please provide the detailed steps we must follow to reproduce this issue. Screenshots or logs would be helpful, too. |
@magento-engcom-team Screenshot of the issue in the cart: |
@dankocherga thank you for update |
@dankocherga, thank you for your report. |
I'm working on it #SQUASHTOBERFEST |
I see this is quite more complicated, than I initially assumed. So I would like to let this handle someone more experienced with magento2 code. Please reassign this one. |
@okorshenko please remove my assignment here. Sorry for the trouble. |
Backport to 2.2 created #22188 |
Hi @dankocherga. Thank you for your report.
The fix will be available with the upcoming 2.2.9 release. |
Setting up tax a rule and applying 100% discount in the shopping cart results in a negative grand total.
Preconditions
Steps to reproduce
Admin setup
Front-End
Expected result
Actual result
Calculating by hand
How Magento calculates it
Putting a debugger at Magento\Quote\Model\Quote\Address\Total\Grand we could see:
Tax amount is rounded and it makes the total sum to be 10610,16 + 1909,83 - 12520 = -0,01
The text was updated successfully, but these errors were encountered: