-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Quantity not equal to Saleable quantity when no orders oustanding due to product stock corruption by deleting an order. #40640
Description
Preconditions and environment
- Magento version 2.4.8
this error has occurred due to inexperience when new to admin and orders were deleted instead of being cancelled.
I have created as S2 because there is workaround of duplicating the sku and starting again with a new product entry and disabling the old corrupted product.
Steps to reproduce
create orders an put products on them.
Then at various stages of state / status delete the orders.
This causes stock to have issues because of creating orphan entries.
Expected result
Quantity and Saleable quantity should be the same when there are no outstanding orders for a product
Actual result
Sometimes when there are no products assigned to outstanding orders due to the orphaned items we get a quantity greater than saleable quantity and other times we get saleable quantity greater than quantity.
Additional information
There needs to be a manual way so that the quantity and saleable quantity totals can be manually changed so that it does not affect stock history or other totals.
Again, this has been caused by bad admin allowing orders to be deleted from a system.
your thoughts on a fix would be greatly appreciated.
Release note
It is now possible to fix erroneous stock errors caused by orphaned stock records created by deleting orders when they should not be deleted.
There needs to be a way to fix teh product stock corruption please.
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Type
Projects
Status