GetShippedItemsPerSourceByPriority
Magento\InventoryShipping\Model\ReturnProcessor\GetShippedItemsPerSourceByPriority
What it does
This class retrieves and organizes shipped order items by their source warehouses when processing returns in Magento's Multi-Source Inventory (MSI) system.
It analyzes all shipments for an order, determines which items came from which sources, and sorts them by source priority to prepare data for inventory restoration.
Developers use this when implementing custom return processing logic that needs to know where shipped items originated from.
Public Methods
- execute()