Log in
Model

DecrementSourceItemQty

Magento\Inventory\Model\SourceItem\Command\DecrementSourceItemQty

What it does

This class handles decreasing inventory quantities for source items in Magento's Multi-Source Inventory (MSI) system.

Developers use it when processing orders, shipments, or any operation that requires reducing stock levels at specific warehouse locations.

It validates the source item data before performing the decrement operation and handles errors appropriately.

Public Methods

  • execute()