Table inventory_stock_2 show is_salable = 1 for configurable and grouped product which are Out of stock
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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