GetInvoicedItemsPerSourceByPriority
Magento\InventorySales\Model\ReturnProcessor\GetInvoicedItemsPerSourceByPriority
What it does
This class determines which inventory source should receive returned products based on source priority when processing order returns or credit memos.
It examines invoiced items that are being returned to stock and assigns them back to the highest-priority source that originally had the product available.
Developers use this during the return/refund process to ensure inventory is restored to the correct warehouse or source location.
Public Methods
- execute()