Log in
Model

DeductSourceItemQuantityOnRefund

Magento\InventorySales\Model\ReturnProcessor\DeductSourceItemQuantityOnRefund

What it does

This class handles inventory deduction when processing credit memo refunds in Magento 2's Multi-Source Inventory (MSI) system.

When a customer receives a refund, this class determines which inventory sources to deduct from, executes the deduction, and places compensating reservations to maintain accurate stock levels.

Developers use this during the refund process to ensure inventory is properly adjusted across multiple warehouse locations.

Public Methods

  • execute()