Log in
Model

GetItemsToCancelFromOrderItem

Magento\InventorySales\Model\GetItemsToCancelFromOrderItem

What it does

This class calculates which inventory items and quantities need to be returned to stock when canceling an order item.

Developers use this when implementing order cancellation logic to determine the exact SKUs and quantities to add back to inventory, handling complex products like bundles and configurables differently than simple products.

Public Methods

  • execute()