Skip to content

Inaccurate Insufficient Stock Error in Checkout Flow: Unable to place multiple order for the same product  #1175

@supreetha789

Description

@supreetha789

We are currently experiencing an issue in the Saleor version 3.17.2 checkout flow related to the creation of orders. Specifically, when attempting to create an order for a product that has a previously placed but unfulfilled order, the system returns an "insufficient stock" error, even when there is available stock according to the Checkout create response.

Steps to Reproduce:

  1. Place an order for a product.
  2. Do not fulfill the order.
  3. Attempt to create a new order for the same product.

Expected Behavior:
The system should allow the creation of a new order for a product, as long as there is available stock according to the Checkout create response.

Actual Behavior:
An "insufficient stock" error is encountered, despite the availability of stock in the Checkout create response.

Screenshots:

  • CheckoutLineProblemInsufficientStock in checkoutcreate/checkoutLinesUpdate mutation screenshot:

image

  • Product variant with track inventory enabled:

image

Environment:
Saleor Core Version: 3.17.2

Additional Information:
This issue does not occur when there is no previous order for the product, and the Allocation is 0.

Note:
We have a single channel and a single warehouse in our configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions