-
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
Refunding remaining items on partially shipped order does not complete order #23964
Comments
Hi @squeegy06. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @squeegy06 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.3-develop instance |
Hi @edenduong. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @edenduong, here is your Magento instance. |
Hello, @squeegy06, thanks for applying. We haven't noticed any information on invoicing the order in Your Steps To Reproduce. Before You create a Credit Memo for some part of the items, there obviously an invoice for those items has had to be created. That's what we are able to conclude from the description of Your case. But what we can not now is that whether You have the other (shipped) part of items invoiced too or not. In case that part has been invoiced the order status has to be Closed. If it has not yet been invoiced the order status has to remain Processing. That's the correct and expected behavior. We have checked both scenarios and we confirm everything works just like that. |
Hello @engcom-Bravo, I'm not sure I quite understand your response but I do see that I may have been a little lax on my steps to reproduce. When completing the purchase we checkout using a credit card method which invoices and captures the payment as part of the order creation. So if I had to update my steps to be more detailed.
Result Expected Result The end result is that all items on the order should be invoiced first, then only some of the items shipped, and the rest refunded. In that order. |
Yes @squeegy06, You understand me quite right. Please take a look at one of Your orders which has already been completely invoiced and captured whether the Invoice button is still displayed there on the order page in admin, like this |
@engcom-Bravo No, I do not see the invoice button when I view an order that I have placed. |
Ok, @squeegy06, then let me ask You yet to try to reproduce the issue on a vanilla 2.3-develop instance as we are not able to reproduce it on such. (Yes, I see Your version is 2.2.8 but if we can not reproduce an issue on such an instance we are supposed to close it according to our workflow). Thank You. |
@engcom-Bravo I have found what I am missing. The issue is only occurring when we issue a partial refund on a single sku. Let me update my steps.
I'm sorry, I originally thought this was happening no matter how the order was structured, but this seems to only happen when a single SKU is partially shipped and partially refunded. So the correct example would be when a customer orders 10 XL Example T-shirts (SKU ABC123-XL), but at time of shipping we only have 9 XL Example T-shirts (SKU ABC123-XL). So we ship the 9 shirts, and later the customer asks for a refund on the 10th shirt since they don't want to wait for the backorder to be fulfilled. The key in all this is that the partial shipment and refund is all happening on a single SKU. |
Please @squeegy06, watch our video and tell us where we go wrong if we do so. |
@engcom-Bravo Looks like me you followed my steps to the letter. I will have to do some more testing then to figure our what I am missing. I appreciate your help and sorry for any wasted time. |
You are welcome @squeegy06. Waiting for Your updates. |
Hello @engcom-Bravo, I have returned from vacation and this morning just to be extra I wiped my entire vanilla install of Magento 2.2.8 and reinstalled just Magento 2.2.8 and the demo data. I followed my own steps and I was able to repeat the results I have been getting. The order still remains in "processing". So maybe this is an issue fixed in 2.3? Unfortunately we are not prepared to update to 2.3 at this time. I await your input. Thanks! |
Hi, @squeegy06. |
Ok @squeegy06, due to my workflow (please the details to step 4 of #23964 (comment)) I was supposed to close the issue right after it had been not reproduced for the first time. I hope I helped You at least something. Feel free to reopen the issue if You manage to reproduce it on the latest develop version. Thanks for applying. |
Just for anyone who stumbles on this, I finally found my fix for this issue here in this commit 54139e3#diff-886404471665983d5e6c6cf05c4788d8 |
experiencing the same issue, even on M2.4.1. steps to reproduce are exactly the same as described in squeegy06's comment:
Is there any timeline on integrating the fix mentioned in the last comment in a new magento release?
Thanks! |
Having the same issue in 2.4.4 |
We have an issue where occasionally a customer will place an order and one or more items in the order, but not all items, go on backorder and we are unable to ship them immediately. So instead we ship only some of the items and notify the customer of the backorder. And sometimes the customer doesn't want to wait, so they request a refund on the backordered items. When we complete the refund, all items on the order are either shipped or refunded, but the order will be set to a processing status instead of complete.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
I expected the order to be marked complete since all items have either been shipped or refunded.
Actual result (*)
The order status has been reset to processing.
Unfortunately because of the chain of events it's usually impossible for us to know before shipping that the customer wants a refund of the unshipped items. So we are unable to first refund and then ship which I understand WILL set the order status to complete. I'm just not sure though if this is a bug or if there is another step to our business logic we are missing that will result in the order being set to complete. Thanks in advance!
The text was updated successfully, but these errors were encountered: