Model
UpdateSourceItemBasedOnLegacyStockItem
Magento\InventoryCatalog\Model\UpdateSourceItemBasedOnLegacyStockItem
What it does
This class synchronizes legacy CatalogInventory stock item data with the new Multi-Source Inventory (MSI) system by updating or creating source items for the default source.
Developers use this during the transition from Magento's legacy inventory system to MSI, ensuring that stock quantities and status from legacy stock items are properly reflected in the new inventory architecture.
Public Methods
- execute()