Skip to content

Incorrect quantity deduction after shipment with mixed product types created. #1396

@nmalevanec

Description

@nmalevanec

Preconditions

  1. Magento with MSI in single stock mode.

Steps to reproduce

  1. Navigate to admin area.
  2. Create simple product with qty = 100, sku = 'simple'.
  3. Create bundle product with created simple product as option with default quantity = 5.
  4. Navigate to storefront.
  5. Put one piece of simple and bundle products into cart.
  6. Place order.
  7. Navigate to admin area, Catalog > Products.
  8. Check simple product "Salable Quantity" = 94 (1 - simple product itself, 5 - in bundle product context).
  9. Navigate to Sales > Orders.
  10. Open created order and create full shipment.
  11. Navigate back to Catalog > Products.
  12. Observe simple product "Quantity" and "Salable Quantity".

Expected result

  1. Simple product "Quantity" and "Salable Quantity" should be 94.

Actual result

  1. Depends on which product has been added to cart first(simple or bundle) "Quantity" and "Salable Quantity" may vary from 99 to 95.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions