Log in
Model

GetSourceDeductedOrderItemsChain

Magento\InventorySalesApi\Model\ReturnProcessor\GetSourceDeductedOrderItemsChain

What it does

This class orchestrates multiple source deduction processors in a chain to determine which inventory sources should be credited when order items are returned to stock.

Developers use this when implementing custom return-to-stock logic for Multi-Source Inventory (MSI), as it aggregates results from all registered source deduction processors and groups them by source code for proper inventory restoration.

Public Methods

  • execute()