medusa
medusa copied to clipboard
@medusajs/inventory wrong allocation after completing draft order
Bug report
Describe the bug
If after creating draft order manager will allocate items (reserve in the draft order page) and send link to the customer to make a payment, after completing order in store endpoint order successfully created but adding one more reservation, so the same item reserved twice.
System information
Medusa version (including plugins): "@medusajs/medusa": "^1.16.1", "@medusajs/inventory": "^1.9.2", "@medusajs/stock-location": "^1.9.1",
Steps to reproduce the behavior
- Create draft order with one selected product
- Allocate this item on the draft order page (reserve it)
- Copy link to the storefront payment and complete this order using store endpoint
- Open successfully created order from the draft order, you will see that this item is reserved twice
Expected behavior
Item should not be reserved twice for the same order.
up
Ran into this today as well, docs didn't mention anything regarding handling inventory manually.
@andriinuts was this addressed in recent versions (haven't upgraded in a bit) or is this a duplicate?
@andriinuts was this addressed in recent versions (haven't upgraded in a bit) or is this a duplicate?
I guess they are redoing all the modules so this ticket will not make sense