Log in
Model

SourceDeductionService

Magento\InventorySourceDeductionApi\Model\SourceDeductionService

What it does

This service handles inventory deduction from specific sources when orders are placed.

Developers use this to automatically reduce stock quantities at designated warehouses or stores, ensuring inventory levels are accurate across the multi-source inventory system.

It validates stock availability, checks backorder settings, and updates source item status (in stock/out of stock) based on remaining quantities.

Public Methods

  • execute()