-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Wrong Order total, the round is not applied to the price calculation. #38455
Comments
Hi @mohammedTBB. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @mohammedTBB Thanks for reporting and collaboration. Verified the issue on magento 2.4 dev instance and the issue is reproducible. The round is not applied to the price calculation. We are getting wrong order total. Steps to reproduce Method 2: Please refer the attached screenshots. ![]() ![]() ![]() |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-11389 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Dash. Thank you for verifying the issue. |
Hi, Is there any patch available for this error? Any estimated timeline for when the fix might be released? Thanks and Regards. |
Hello, Thanks and regards. |
@magento I am working on this |
- the mistake was that the amount for non-taxes after the discount came with incorrect rounding
Preconditions and environment
special price 733.61
special price 569.67
Steps to reproduce
Two ways to reproduce the error:
Method 1:
1- add product 1 * 3 to the cart
2- add product 2 * 2 to the cart
3- go to the checkout
4- apply the discount and use the country for the tax to be applied
5- create order
Method 2:
1- add product 2 * 2 to the cart
2- add product 1 * 3 to the cart
3- go to the checkout
4- apply the discount and use the country for the tax to be applied
5- create order
Expected result
The function round should be applied when calculating the price_after_discount, discount_amount and taxes amount.
the actual total of the order should be 3667,52.
Actual result
Magento not doing the round function when calculating price_after_discount, discount_amount and taxes amount for the second product added to the cart.
resulting in total 3667,51 when reproducing the error using method 1 and 3667,5 when reproducing the error using method 2.
Additional information
Here is the calculation that magento do, column (B+C) for first order, column (D+E) for the second order.

the cells with background yellow where magento miscalculate the price (possibly by not rounding the price).
the correct total is the result of the column (B+E) which are the correct calculations and matches the manual calculations.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: