Log in
Model

ItemToDeduct

Magento\InventorySourceDeductionApi\Model\ItemToDeduct

What it does

This class represents an inventory item that needs to be deducted from stock, containing the product SKU and quantity to deduct.

Developers use this as a data transfer object when triggering inventory deduction operations, such as when an order is placed or items are reserved.

It's part of Magento's Multi-Source Inventory (MSI) system for managing stock levels across multiple warehouses.

Public Methods

  • getSku()
  • getQty()