Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
GetProductSalableQtyInterface Interface Reference
Inheritance diagram for GetProductSalableQtyInterface:
GetProductSalableQty

Public Member Functions

 execute (string $sku, int $stockId)
 

Detailed Description

Service which returns Quantity of products available to be sold by Product SKU and Stock Id. This service calculates the salable qty taking into account existing reservations for given sku and stock id and subtracting min qty (a.k.a. "Out-of-Stock Threshold")

@api

Definition at line 17 of file GetProductSalableQtyInterface.php.

Member Function Documentation

◆ execute()

execute ( string  $sku,
int  $stockId 
)

Get Product Quantity for given SKU and Stock

Parameters
string$sku
int$stockId
Returns
float
Exceptions

Implemented in GetProductSalableQty.


The documentation for this interface was generated from the following file: