Log in
Model

GetReservationsQuantity

Magento\InventoryReservations\Model\ResourceModel\GetReservationsQuantity

What it does

This class retrieves the total quantity of inventory reservations for a specific product SKU within a given stock.

Developers use this to calculate how much inventory is reserved (but not yet deducted) for orders, typically to determine available saleable quantity.

It queries the inventory_reservation table and sums all reservation quantities matching the SKU and stock ID.

Public Methods

  • execute()