- Notifications
You must be signed in to change notification settings - Fork 9.4k
Display backordered quantity if the order item has them #38320
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
Display backordered quantity if the order item has them #38320
Conversation
Hi @dverkade. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
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 @dverkade. Thanks a lot for your contribution. Please, check the failing static and functional tests. As for the functional tests - there's a classical issue where assertion is made on some child element. Once you've introduced a new child, the tests are failing. So, it's a matter of a simple test adjustment.
Thanks.
@rogyar I've changed the template to pass the static tests. Regarding the functional test failing, that's not an issue of this commit as the commit is for the Sales module and displaying the backordered quantity on the order overview page. The failing functional test is for: "on page /admin/catalog/product/index" which is a false positive. |
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.
@dverkade Thanks for contribution.
Please look at my comment
<th><?= $block->escapeHtml(__('Backordered')); ?></th> | ||
<td><?= (float) $item->getQtyBackordered() ?></td> |
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.
Using escape
functions from the Template class was deprecated. Please use $escaper
.
It would be good replace all calls in this file.
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, WebAPI Tests |
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.
Failed tests seem flaky to me, hence approving the PR.
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.
Now looks good for me.
@engcom-Charlie Thanks for update
@magento run all tests |
Hi @dverkade, Thanks for the collaboration & contribution! ✔️ QA Passed Preconditions:
Steps to reproduce
Before: ✖️ ![]() After: ✔️ ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run Functional Tests B2B, Functional Tests EE, WebAPI Tests |
Description
This PR will show the number of items that are backordered for every order item in the order overview screen.
Fixed Issues
Manual testing scenarios
Contribution checklist