I experienced the following behavior in Magento 22.214.171.124:
- Edit product
- Go to inventory tab
- View inventory
In my test inventory on the product was sitting at 9 units.
- I place an order for the product on the front-end whilst keeping the product edit page open
- After the order is placed, I click
Saveon the product edit page (while inventory is still at 9)
Now inventory is sitting on 7 (in other words, 2 units deducted) even though only 1 was ordered.
I repeated this by placing the order in a similar fashion in the back-end, and experienced the same behavior.
Is this just me or do your sites behave similarly? If so, how can this be resolved? I haven't found any official bug report.
Edit: If you view the product inventory level in a new tab after having just placed the order, it seems like the stock level is correct. However, once you click
Save on your open tab (whilst editing), the inventory is then reduced by 2 units.
Edit 2: I've posted what I think may be the solution to this issue.
So am I correct in saying that the answer I posted is a solution?
Can anybody think of any problems this change may have?
What exactly were the dev team thinking with the