Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust StockItem aggregation functionality to support OutOfStock SourceItem during the calculation #65

Closed
maghamed opened this issue Sep 1, 2017 · 2 comments
Assignees

Comments

@maghamed
Copy link
Contributor

maghamed commented Sep 1, 2017

Adjust StockItem aggregation functionality to support OutOfStock SourceItem during the calculation.

Currently, indexation mechanism does not take into account that some of the source items could be out of Stock and just sum up all the quantities together.

We need to fix that logic.

So, if there are 3 Sources assigned to the single Stock.
Source A: Qty - 10 Status: In Stock
Source B: Qty - 20 Status: Out Stock
Source C: Qty - 30 Status: In Stock

Current Indexation result is: 10 + 20 + 30 = 60

Expected Behaviour: 10 + 30 = 40

Changes should be covered with Unit Tests and MUST be covered by integration tests (because we can not check full re-indexation work via api-functional tests)

@larsroettig
Copy link
Member

@naydav
Copy link

naydav commented Sep 15, 2017

Merged in #76

@naydav naydav closed this as completed Sep 15, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 16, 2021
MC-40718: [Cloud]The swatches are not strike-through when the invento…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants