magento / magento/inventory

Table inventory_stock_2 show is_salable = 1 for configurable and grouped product which are Out of stock

Open
#2,204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Progress: ready for dev QA Verified
Dominant language
PHP
Stars
357
Forks
262
PR merge metrics
No merged PRs in 30d

Description

### Preconditions (*)

1. Custom stock with custom source and custom Website created
2. Configurable and grouped products created with child products assigned to Custom source with positive qty

### Steps to reproduce (*)

1. Set parent configurable and grouped products as "Out of stock" in admin and save
2. In DB check inventory_stock_2 table

### Expected result (*)

1. Value for column "Is_salable" for these products should be = 0

### Actual result (*)

1. Value for column "Is_salable" for these products = 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the custom source, website, configurable product, and grouped product described in the report, then inspect the inventory_stock_2 table after setting both parent products out of stock. Done means the affected products have is_salable set to 0 rather than 1; the report does not name a source file or test to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.