-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
fix: getting scrap items from sub assemblies by fetching scrap items for parent BOM #42928
base: version-15-hotfix
Are you sure you want to change the base?
Conversation
@KerollesFathy Add test case |
@rohitwaghchaure, the test case has been added. Please review it. 🙏🏻 |
This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
@KerollesFathy can you review this merge conflict and reopen the pull request |
144b5a5
to
f2e1610
Compare
f2e1610
to
8e33d93
Compare
@rohitwaghchaure Please review this PR |
Closes #40658
Problem:
when creating a Stock Entry from a Work Order (click on finish button on Work Order and enter Qty for Manufacture and click Create). Specifically, when the "Set Operating Cost / Scrap Items From Sub-assemblies" option is enabled in Manufacturing Settings, the Stock Entry fails to correctly fetch the scrap items for BOM Item that on Work Order.
The problem occurs because the scrap items from sub-assemblies do not consider the BOM Scrap Item of the Parent BOM (fieldlabel : BOM No ) in the Work Order. This leads to incorrect stock entries.
How to reproduce the bug 🐛 :
Proposed Solution
This update will ensure that the Stock Entry accurately considers the Parent BOM's scrap items when generating stock entries from Work Orders.