How to manage Magento2 stock and salable quantity field in equally.
In magento2 stock and salable quantity are diffent think.
- Magento2 stock is the physical quantity which you have.
- Salable qtuantity is run time calculate. it is cal culate from two data. One is magento stock and another one is reservation table. When customer place order reservation table row are created with that number of item qtuantity. Then this will be minus and then will show in salable qruantiy.
The process is
- Now for one product salable qty and stock qty is same. sale_qty = 10 || qty = 10
- Customer place order with 2 qty of this item. sale_qty = 8 || qty = 10
- After shipment the stock qty will remove. sale_qty = 8 || qty = 8
- If above order is not shipped it was canceled. sale_qty = 10 || qty = 10
This is is the feature of salable qty and Magento2 stock qty.