Log in
Model

ReturnProcessor

Magento\SalesInventory\Model\Order\ReturnProcessor

What it does

This class handles the inventory return process when a credit memo is created in Magento 2.

It returns products to stock based on the credit memo items, updates inventory quantities, and triggers reindexing of stock and price data.

Developers use this when processing refunds to ensure returned items are added back to available inventory.

Public Methods

  • execute()