Log in
Model

GetSourceCodeByShipmentId

Magento\InventoryShipping\Model\ResourceModel\ShipmentSource\GetSourceCodeByShipmentId

What it does

This class retrieves the inventory source code associated with a specific shipment ID from the database.

Developers use it when they need to determine which warehouse or inventory source was used to fulfill a particular shipment, which is essential for multi-source inventory management and tracking stock deductions.

Public Methods

  • execute()