-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed creating shipping labels in part-shipment #27672
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 creating shipping labels in part-shipment #27672
Conversation
Hi @NikolasSumrak. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento create issue |
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.
@NikolasSumrak could you please cover changes with automated test?
@magento run all tests |
It is complicated to create MFTF for this change, because of the security issue with storing shipment account credentials. Integration test checks that JS code rendered. |
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 @engcom-Hotel, thanks for adding test coverage, please have a look at my comments below.
dev/tests/integration/testsuite/Magento/Shipping/Block/Adminhtml/Order/AddToPackageTest.php
Outdated
Show resolved
Hide resolved
dev/tests/integration/testsuite/Magento/Shipping/Block/Adminhtml/Order/AddToPackageTest.php
Outdated
Show resolved
Hide resolved
@magento run all tests |
Hi @gabrieldagama, thank you for the review.
|
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.
Hello @NikolasSumrak
Looks like the changes provided in this PR do not fix the original issue
The Save button is still disabled when only one product is added to package
Pull Request state was updated. Re-review required.
Hello @NikolasSumrak, could you please check the previous comment and provide additional information for reproducing process or check provided solution. |
Will check it |
@gabrieldagama Can you please review the latest changes? Thank you |
Hi @gabrieldagama, thank you for the review.
|
@magento run all tests |
1 similar comment
@magento run all tests |
Hi @NikolasSumrak, thank you for your contribution! |
Fixed creating package when we ship not all items
Description (*)
When we use sources, we can create shipment for only one item from order. In this case when we try to create shipping label with shipment ("Create Shipping Label" Checkbox), the system requires to add all products to package (including products, which wasn't added to shipment) and validation fails.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected result:
7. In the list there is only one product
8. The "Next" button is enabled
Questions or comments
Contribution checklist (*)
Resolved issues: