-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fixed calculation of 'Total' column under "Last Orders" listing on the admin dashboard #21283
Fixed calculation of 'Total' column under "Last Orders" listing on the admin dashboard #21283
Conversation
…ixed Negative order amount in dashboard when viewing particular store data
Hi @rav-redchamps. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
Hi @rav-redchamps. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @rav-redchamps, here is your Magento instance. |
@magento-engcom-team give me test instance |
Hi @rogyar. Thank you for your request. I'm working on Magento instance for you |
Hi @rogyar, here is your new Magento instance. |
Hi @rav-redchamps. Thank you for your collaboration. There's still an issue in case of partially refunded order with a discount. Steps to reproduce the same as you described for issue #21281. Product price: $10, discount: $5 (per item), qty ordered: 3, qty refunded: 2 Problem: the negative value in dashboard's order total for all store views and for a specific store view. Could you check it out, please? |
…unt is partially refunded
@magento-engcom-team give me test instance |
Hi @rav-redchamps. Thank you for your request. I'm working on Magento instance for you |
Hi @rav-redchamps, here is your new Magento instance. |
@rogyar just fixed it and tested. Kindly give a check one more time. |
@magento-engcom-team give me test instance |
Hi @rogyar. Thank you for your request. I'm working on Magento instance for you |
Hi @rogyar, here is your new Magento instance. |
@rav-redchamps now it looks much better. Thank you. |
✔️ QA passed |
42f115b
to
81c7e26
Compare
* @return string | ||
*/ | ||
protected function getTotalsExpression( | ||
$storeId, | ||
$baseSubtotalRefunded, | ||
$baseSubtotalCanceled, | ||
$baseDiscountCanceled | ||
$baseDiscountCanceled, | ||
$baseDiscountRefunded = '0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we are not allowed to change public and protected methods signature according to our Backward Compatible Development Guide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sidolov
I have observed that you have initialized "$baseDiscountRefunded = '0'" in the method signature. So is this the change you are talking about and already did yourself? or you would like me to remove the additional added parameter to function's signature completely?
@p-bystritsky , please, take a look at changes, we should rework them according to the Backward Compatibility Guide |
81c7e26
to
de511c0
Compare
@sidolov done. |
de511c0
to
57c4db4
Compare
Hi @rav-redchamps, thank you for your contribution! |
…listing on the admin dashboard #21283
Description (*)
The calculation of 'Total' column under "Last Orders" listing on the admin dashboard was wrong. It has below problems.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Testing fix for issue##18754
Testing fix for issue##21281
Contribution checklist (*)