Skip to content

[Subcontracting] Exclude Components of subcontracting type "Transfer" from Planning#8046

Open
SPinkow wants to merge 5 commits into
microsoft:mainfrom
GOB-Software-Systeme-DevOps:w/pinkow/Bug630597ExcludePurchaseComponentsFromPlanning
Open

[Subcontracting] Exclude Components of subcontracting type "Transfer" from Planning#8046
SPinkow wants to merge 5 commits into
microsoft:mainfrom
GOB-Software-Systeme-DevOps:w/pinkow/Bug630597ExcludePurchaseComponentsFromPlanning

Conversation

@SPinkow
Copy link
Copy Markdown
Contributor

@SPinkow SPinkow commented May 7, 2026

…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:

  • Added event subscribers in SubcPlanningLineMgmtExt.Codeunit.al to exclude production order components with "Purchase" or "Transfer" subcontracting types from the planning engine, preventing requisition lines from being suggested for these components.
  • Updated namespace imports in SubcPlanningLineMgmtExt.Codeunit.al to support new logic.

Testing Enhancements:

  • Added two new tests in SubcSubcontractingTest.Codeunit.al:
    • PurchaseSubcTypeProdOrderCompExcludedFromPlanning verifies that components with subcontracting type "Purchase" are excluded from planning.
  • Added helper procedure UpdateProdOrderComponentWithSubcontractingType to streamline test setup for changing subcontracting types in production order components.
  • Updated test data setup to use InventoryByVendor instead of "Purchase" in one scenario to better align with the new logic.

Work Item(s)

Fixes AB#630597

@SPinkow SPinkow requested a review from a team as a code owner May 7, 2026 15:42
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels May 7, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone May 7, 2026
@JesperSchulz JesperSchulz added the SCM GitHub request for SCM area label May 8, 2026
@AleksandricMarko AleksandricMarko added the Subcontracting Subcontracting related activities label May 8, 2026
@SPinkow
Copy link
Copy Markdown
Contributor Author

SPinkow commented May 13, 2026

@ChethanT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item SCM GitHub request for SCM area Subcontracting Subcontracting related activities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants