Log in
Model

GetSkuFromOrderItem

Magento\InventorySales\Model\GetSkuFromOrderItem

What it does

This class retrieves the correct SKU from an order item, handling special cases for different product types like bundles.

Developers use this when processing orders in the Multi-Source Inventory system to ensure accurate inventory management, especially when the order item SKU differs from the actual product SKU that needs inventory deduction.

Public Methods

  • execute()