Log in
Model

GetProductSalableQty

Magento\InventorySales\Model\GetProductSalableQty

What it does

This class calculates the salable quantity of a product for a specific stock in Magento's Multi-Source Inventory (MSI) system.

It retrieves the physical quantity in stock, adds pending reservations (orders), and subtracts the minimum quantity threshold to determine how many units are actually available for sale.

Developers use this to check real-time product availability before allowing purchases.

Public Methods

  • execute()