[Subcontracting] Exclude Components of subcontracting type "Transfer" from Planning#8046
Open
SPinkow wants to merge 5 commits into
Conversation
Contributor
Author
AleksandricMarko
approved these changes
May 13, 2026
ChethanT
approved these changes
May 13, 2026
PredragMaricic
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…roduction Order Components<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below
-->
Summary
This pull request introduces enhancements to the subcontracting planning logic, specifically ensuring that production order components with certain subcontracting types are excluded from planning suggestions. It also adds comprehensive tests to verify this behavior and refines some test data setup.
Subcontracting Planning Logic Improvements:
SubcPlanningLineMgmtExt.Codeunit.alto exclude production order components with "Purchase" or "Transfer" subcontracting types from the planning engine, preventing requisition lines from being suggested for these components.SubcPlanningLineMgmtExt.Codeunit.alto support new logic.Testing Enhancements:
SubcSubcontractingTest.Codeunit.al:PurchaseSubcTypeProdOrderCompExcludedFromPlanningverifies that components with subcontracting type "Purchase" are excluded from planning.UpdateProdOrderComponentWithSubcontractingTypeto streamline test setup for changing subcontracting types in production order components.InventoryByVendorinstead of "Purchase" in one scenario to better align with the new logic.Work Item(s)
Fixes AB#630597