-
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
Success message is not showing when creating invoice & shipment simultaniously #19942 #20391
Success message is not showing when creating invoice & shipment simultaniously #19942 #20391
Conversation
…ce & shipment simultaniously magento#19942
Hi @XxXgeoXxX. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @sdzhepa. Thank you for your request. I'm working on Magento instance for you |
Hi @sdzhepa, here is your new Magento instance. |
@magento-engcom-team give me 2.3-develop instance |
Hi @sdzhepa. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @sdzhepa, here is your Magento instance. |
Hello @XxXgeoXxX I cannot reproduce the described issue on lates Could you confirm and close PR or provide additional details? Used scenario:
Actual Result: Sucess message "You created the invoice and shipment." is shown Thank you for contribution and collaboration! |
Hi @sdzhepa Messages are removed after call method app/code/Magento/Email/Model/Template/Filter.php:blockDirective because all/only shipment email template used construction '{{block}}'. When shipment and invoice created together with send email functionality mesages were added and after that Magento creates block(according templates app/code/Magento/Sales/view/frontend/email/shipment_new.html) by layout functionality(\Magento\Framework\View\LayoutInterface) and it call method initMessages which remove all of them. This does not happen when we only ship order because method add messages called after send email. |
Hi @XxXgeoXxX Thank you for the details! Just one thing, during testing I found new records in the system/debug log files. Steps to reproduce
Actual result: (on branch with fix)
Expected result: (on 2.3-develop branch )
|
Hi, @sdzhepa. I could not reproduce your records in log files. |
Hello @XxXgeoXxX We have rechecked it one more time on the clean clone and install and no errors. Sorry for delays, I put the PR into the delivery queue Thank you for contribution and collaboration! |
Hi @sdzhepa, thank you for the review. |
Hi @XxXgeoXxX, thank you for your contribution! |
Description (*)
Preconditions (*)
Magento 2.3
PHP 7.1.3
Steps to reproduce (*)
Create order from admin panel.
View order at admin panel and Click "create invoice".
Check the checkbox "create shipment" and "Email copy of invoice" while generating invoice. and click submit invoice button.
Expected result (*)
Success message should show as "You created the invoice and shipment."
Actual result (*)
Invoice has been created but no success message is appearing.
Manual testing scenarios (*)
Create order from admin panel.
View order at admin panel and Click "create invoice".
Check the checkbox "create shipment" and "Email copy of invoice" while generating invoice. and click submit invoice button.
Contribution checklist (*)