Log in
Model

GetStockIdsBySourceCodes

Magento\InventorySalesAdminUi\Model\ResourceModel\GetStockIdsBySourceCodes

What it does

This class retrieves all stock IDs that are associated with given inventory source codes by querying the inventory_source_stock_link table.

Developers would use this when they need to find which stocks are linked to specific warehouse or source locations, typically when managing multi-source inventory assignments or performing stock-related operations in the admin interface.

Public Methods

  • execute()