magento2
magento2 copied to clipboard
Order remains in status 'processing' after shipping, if items get partially refunded
Preconditions and environment
This is a repeat of issue #31063 which is closed despite the issue still being present in 2.4.3-p2.
- Magento 2.4.3-p2
Steps to reproduce
- Create an order with multiple items ordered.
- From the admin, create an invoice for the order.
- From the admin, create a credit memo and refund an item only partially.
- From the admin, create a shipping for the order and the remaining items.
- Observe the order status.
Expected result
Status of the order should be 'Complete'. (As it is, when one item is fully refunded)
Actual result
Status of the order stays 'Processing'.
Additional information
- Create an order for a Product in the quantity of 10
- From Admin, create an Invoice for the order. (for all 10 items)
- Create a Credit Memo for a quantity of 5 items
- Ship the remaining 5 items
Release note
No response
Triage and priority
- [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [X] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @vseager. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
- Summary of the issue
- Information on your environment
- Steps to reproduce
- Expected and actual results
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance - upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
- Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself. -
[ ] 3. Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! -
[ ] 5. Add label
Issue: Confirmedonce verification is complete. -
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @vseager , Thank you for raising an issue , We tried to reproduce the issue on Magento 2.4 Develop instance, it is not reproducible. Order status is 'complete' after shipping successfully.
followed below steps:
- Create an order with multiple items ordered.
- From the admin, create an invoice for the order.
- From the admin, create a credit memo and refund an item only partially.
- From the admin, create a shipping for the order and the remaining items.
Before:

After:

Observe the order status. it is 'complete' status only
@engcom-Delta Thanks for your update, however, I don't believe you have followed the steps to reproduce correctly.
You are adding two different items to the cart and refunding the total quantity of one of those items. This issue happens only when you partially refund a single SKU where the quantity is greater than 1 for that SKU.
Instead of refunding all 5 of 25-MB05, you need to refund 2 of them (or any number less than 5), then try to ship the remaining items.
Please try again to reproduce this issue, but this time add only one product SKU to the cart, following these steps:
- Go to SKU
24-MB05 - Add more than one
24-MB05to the cart (for example 5) - Your cart should show only ONE product but a QTY of 5 - Invoice the whole order (5 x
25-MB05) - Create a credit memo for only 2 x
25-MB05 - Create a shipment for the remaining 3 x
25-MB05
:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-3178 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Hi @vseager ,
Thank you so much for sharing the detailed steps , We tried once again to reproduce it , Yes issue is reproducible with a product that has 5 quantity .
Hence marked issue as 'Issue Confirmed'.
- Go to SKU 24-MB05
- Add more than one 24-MB05 to the cart (for example 5) - Your cart should show only ONE product but a QTY of 5
- Invoice the whole order (5 x 25-MB05)
- Create a credit memo for only 2 x 25-MB05
- Create a shipment for the remaining 3 x 25-MB05
Thanks
@magento i am working on this.
@nisha-vaghela It was broken in https://github.com/magento/magento2/commit/cbc352e0d0235f1e8e200eee1f6587d08b1ec7ca
Closed without any comments? Possibly fixed by AC-3178::Order remains in status 'processing' after shipping, if items is get partially refunded
Hello,
As I can see this issue got fixed in the scope of the internal Jira ticket AC-3178 by the internal team Related commits: https://github.com/magento/magento2/search?q=AC-3178&type=commits
Based on the Jira ticket, the target version is 2.4.6.
Thanks
Can we get a patch for our version? 2.4.5p-2
Just FYI the code fix doesn't work to partial refund/shipment to grouped product.