Log in
Model

GetIsAnySourceItemInStock

Magento\InventorySales\Model\ResourceModel\GetIsAnySourceItemInStock

What it does

This class checks if a product (identified by SKU) has any inventory source items that are in stock for a specific stock/sales channel.

Developers would use this to determine product availability across multiple inventory sources, which is essential for multi-source inventory (MSI) functionality when checking if a product can be sold.

Public Methods

  • execute()