Log in
Model

PartialTransferSourceValidator

Magento\InventoryCatalog\Model\Source\Validator\PartialTransferSourceValidator

What it does

This validator ensures that inventory transfers between sources are valid in Magento's Multi-Source Inventory (MSI) system.

Developers use this class to validate that both origin and destination sources exist and are different before allowing partial inventory transfers between warehouses or locations.

It prevents invalid operations like transferring inventory from a source to itself or to non-existent sources.

Public Methods

  • validate()