We are using Magento 2.2.8
When we refund back-ordered items, the order status is not set to complete even though all items have either been refunded or shipped. This happens only when the partial shipment and partial refund occur on the same SKU.
- Create an order with multiple quantities (at least 2) of a single SKU.
- Ship out only some of the items leaving the rest to be refunded.
- Refund the remaining items so that all items on the order are either shipped or refunded.
- Observe order status
The Order status is set to "processing" as configured in Magento.
I expected the order to have a status of "complete" since all items have either shipped or been refunded.
Two keys to this. One, that the refund occurs after a shipment and as the final action on the order. And two, that the partial shipment and refund occur on the same SKU. For example your customer ordered 20 XL Super Cool T-Shirts SKU: SC123-XL. Unfortunately you only have 15 of SC123-XL on hand so you ship the 15 you have. The customer later calls and asks the remaining 5 be refunded. When you issue the refund in Magento, the order will not complete. This is the issue we are having.