-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport] Fix negative subtotal when full discount applied with tax calculation #10790 #22227
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
[Backport] Fix negative subtotal when full discount applied with tax calculation #10790 #22227
Conversation
Hi @ilnytskyi. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @rogyar, thank you for the review. |
✔️ QA passed |
Hi @ilnytskyi, thank you for your contribution! |
Original Pull Request
#14468
Added additional check for discount
Description
Added additional check for full (100%) discount in
app/code/Magento/SalesRule/Model/Utility.php:214
to see if delta (row total minus discount) is negative. In case of negative delta to decrease a discount on delta value.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist