GetSourceSelectionResultFromCreditMemoItems
Magento\InventorySales\Model\ReturnProcessor\GetSourceSelectionResultFromCreditMemoItems
What it does
This class determines which inventory sources should receive returned products when processing a credit memo in Magento's Multi-Source Inventory (MSI) system.
It calculates the quantities to return to each source by analyzing the original order's source deductions and credit memo items, then uses the source selection algorithm to determine the optimal return destinations.
Developers use this during credit memo processing to properly restore inventory to the correct warehouse locations.
Public Methods
- execute()