Log in
Model

IsAnySourceItemInStockCondition

Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsAnySourceItemInStockCondition

What it does

This class checks if a product has any source items that are in stock for a requested quantity.

It's used as a condition in the salability check process to determine if a product can be sold, returning errors when no source items are available in stock for the given stock ID.

Public Methods

  • execute()