Open FranRoy opened 5 years ago
Hi @FranRoy Have you done any order manipulations with the old items in question? Or is it just in this state straight after upgrade? Do you have any non-default inventory settings? For example backorders or smth like that?
Hello @ishakhsuvarov, thanks for your answer.
No, everything is by default and I don't use backorders. The only thing not by default is that previously to the upgrade, I used an Inventory Management module (boostMyShop ERP). I disabled it before the upgrade and set all stocks to 0.
The table inventory_stock_2 which I assume stores salable data for that specific source, stores the wrong value after I update de stock (in this case, sets to 15 when It should be 5).
Do you know which parts involving the salabe quantity formula/process could be wrongly altering the data?
Thanks a lot!
Fran
@FranRoy Don't have a clue of anything doing exactly 3x multiplication. Do you have any more extensions somehow related to the inventory? Also, you might want to check if there is anything strange happening in the exception log.
Hi @ishakhsuvarov nothing strange in exception.log :( I don't have any other extensions related to inventory or that affect products at all. Can the fact that new products work fine, give any kind of clue about the origin of the issue?
Thanks!
@FranRoy Still thinking on it. Obviously it looked like multiple attempts to save. Also, processing of the existing orders can theoretically produce artifacts on existing products after upgrade. Nothing specific comes to mind at this point. Can you check your inventory_reservation
table for anything related to those skus just in case? even though it's unlikely to be the case now.
Hello @ishakhsuvarov , inventory_reservation is empty, I have no open orders (I supose that's why).
Thanks,
Fran.
@FranRoy I've got some information that similar issue was already discussed before. Working on getting some information on the resolution and will let you know.
Hello @ishakhsuvarov
Did you get the information or have any news?
Thanks!
Hi @FranRoy
Unfortunately I couldn't find any exact information.
Please reach out to me on Magento Community Slack and we can try to diagnose it.
Thanks
Hi,
I noticed similar issue when updateing stock qty with api. It seems that the qty is not updated to cataloginventory_stock_status
table which is used to calculate the salable qty through the inventory_stock_1
view.
See #2454 for some more shenanigans similar to this issue.
Preconditions
Steps to reproduce
Expected result
Actual result
* If I create a new product from scratch, the Salable Quantity is well calculated after setting the source Quantity. It only occurrs with old products.