-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory is not subtracted on placed order with enabled Manage Inventory #3240
Comments
This is likely due to carts being completed without using the cart-completion strategy, which contains the inventory adjustment step. E.g. if the I realise, the Stripe webhook endpoint does not currently handle this, so this might be the culprit to your issue. I've added it to our backlog and we will investigate and come up with a solution asap :) |
@chemicalkosek Can I get you to confirm that this is only when orders are created through the Stripe webhook? We will solve the webhook issue in #3257, so I am closing this to avoid confusion around our inventory management functionality. |
Confirmed :) I saw the PR using cart completion strategy for webhook. Should definitely fix this. |
Bug report
Describe the bug
When Manage Inventory is enabled, variant inventory is not subtracted when order is placed.
This was reported by user on Discord, I have tested and indeed the issue exists. I would consider this quite critical.
User also reported that returning an item does increase the inventory count.
System information
Medusa version (including plugins): 1.7.6 (happens on 1.7.5 too)
Node.js version: 18.14
Database: postgres
Expected behavior
Inventory is subtracted when order is placed.
The text was updated successfully, but these errors were encountered: