Log in
Model

SourceSelectionItem

Magento\InventorySourceSelection\Model\Result\SourceSelectionItem

What it does

This class represents a single item in a source selection result during Multi-Source Inventory (MSI) processing.

Developers use it to retrieve inventory allocation details for a specific SKU from a particular source, including how much quantity should be deducted and what quantity is available.

It's typically returned by source selection algorithms when determining which warehouse should fulfill an order item.

Public Methods

  • getSourceCode()
  • getSku()
  • getQtyToDeduct()
  • getQtyAvailable()
  • getExtensionAttributes()
  • setExtensionAttributes()