Question

I've magento setup with MSI with 2 sources and both are assigned to stocks as well.

But In product grid Total Salable Qty displays wrong count.

It suppose to be sum of total available sources. 

Check below screen.

enter image description here

Here is screen of product form.

enter image description here

Anyone has gone through it ? Any help would be appreciated.

Sources Configurations enter image description here

Stock Configurations enter image description here

Was it helpful?

Solution

After debug and clearing all test data issue was still there.

After that I've disabled 3rd party modules and came to know that it's caused by Premium ERP. :(

OTHER TIPS

Since I can't reproduce this in my system but I'm really curious what's up there, I stepped a little into the calculation of this field. Although this don't solve your problem, it might bring some light into the situation.

There are 3 values from which the salable quantity is calculated: The quantity in stock (which is the sum of all sources of the stock), the reserved quantity (from orders) and the configured minimum quantity.

The formula is: quantity in stock + reserved quantity - minimum quantity

With this SQL statements you can check the situation in your database:

-- quantity in stock
select quantity from inventory_stock_[YOUR_STOCK_ID] where sku = '[YOUR_SKU]';

-- reserved quantity
select SUM (quantity) from inventory_reservation where sku = '[YOUR_SKU]';

-- configuration for minimum quantity in stock
select min_qty, use_config_min_qty from cataloginventory_stock_item 
where product_id = (select entity_id from catalog_product_entity where sku = '[YOUR_SKU]');

Please run this statements for your product and share the results with us.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top