Log in
Model

UpdateLegacyStock

Magento\InventoryIndexer\Model\Queue\UpdateIndexSalabilityStatus\UpdateLegacyStock

What it does

This class updates legacy stock status records when inventory reservations are placed or removed.

Developers use it to maintain backward compatibility with Magento's original stock system while using the newer Multi-Source Inventory (MSI) functionality.

It's automatically invoked during order placement or cancellation to keep both inventory systems synchronized.

Public Methods

  • execute()