Skip to content

Error appears as 'Product is out of stock' when editing orders in the backend without MSI. #39898

Open
@bhavyamodi29

Description

@bhavyamodi29

Preconditions (*)

Tested in this versions:

  1. Magento 2.4.8
  2. MSI disabled

Description (*)

While placing an order for a product with its entire stock quantity causes an issue during order editing from the backend. The error 'Product is out of stock' is displayed, even though the order should be editable. As you can see in below Screenshot-1.

Screenshot-1

Image

Steps to reproduce (*)

  1. Create a new product and set its stock quantity to a any specific value (e.g., 100).
  2. From the frontend, place an order for the same product with the exact stock quantity (e.g., 100).
  3. After the order is placed, navigate to the Magento Backend -> Sales -> Orders.
  4. Try to edit the placed order from the backend.

Expected result (*)

The order should be editable in the backend without any errors.

Actual result (*)

The error message 'Product is out of stock' is displayed when attempting to edit the order in the backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: OrderComponent: StockIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.8Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions