Log in
Model

GetSourceDeductionRequestFromSourceSelection

Magento\InventorySales\Model\ReturnProcessor\GetSourceDeductionRequestFromSourceSelection

What it does

This class converts source selection results into source deduction requests during the return/credit memo process in Magento's Multi-Source Inventory (MSI) system.

Developers use this when processing returns to create the appropriate inventory deduction requests that specify which warehouse sources should receive returned items and in what quantities.

It organizes items by source code and creates sales events for tracking inventory movements.

Public Methods

  • execute()