Skip to content

Production Definition Wizard - Implementation #9067

Open
stevengrossGOB wants to merge 3 commits into
microsoft:mainfrom
GOB-Software-Systeme-DevOps:w/grosss/ProdDefinitionWizardImplementation_BaseApp
Open

Production Definition Wizard - Implementation #9067
stevengrossGOB wants to merge 3 commits into
microsoft:mainfrom
GOB-Software-Systeme-DevOps:w/grosss/ProdDefinitionWizardImplementation_BaseApp

Conversation

@stevengrossGOB

@stevengrossGOB stevengrossGOB commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What & why

This PR introduces the Production Definition Wizard, a guided multi-step wizard for defining and configuring the Bill of Materials (BOM) and Routing of manufactured items.

This pull request introduces enhancements to the Manufacturing module, focusing on better support for the Production Definition Wizard, improved handling of temporary records in production tables, and new configuration options for production order creation. The changes add new fields and UI controls for wizard customization, expand event publishers for extensibility, and ensure that temporary records are handled safely in business logic.

Key changes include:

Production Definition Wizard Enhancements:

  • Added new configuration fields to ManufacturingSetup.Table.al and corresponding UI groups to ManufacturingSetup.Page.al to control the visibility and behavior of wizard steps, default values, and user overrides in the Production Definition Wizard. These include options for BOM/routing step display, component preview, always saving modified versions, UI selection overrides, and default values for work center, component item, and flushing method. [1] [2]
  • Added a new field UseProductDefinitionWizard to the CreateOrderFromSales.Page.al page, including logic to control its editability and tooltip, allowing users to opt into the wizard during order creation. [1] [2]

Temporary Record Handling Improvements:

  • Updated multiple procedures in Prod. Order Component and Prod. Order Routing Line tables to check for temporary records using IsTemporary(), exiting early to prevent unintended processing or database access. This improves stability when working with in-memory (temporary) records. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Extensibility and Event Publisher Updates:

  • Expanded several integration events to include new parameters (such as IsHandled and ProdOrderLine) for greater flexibility in extensions. Added new event publishers like OnBeforeGetProdOrderNeeds and OnBeforeGetProdOrderLine to allow external code to influence or override logic in key procedures. [1] [2] [3]

Miscellaneous:

  • Added missing using directives for new dependencies related to the wizard and work center modules. [1] [2]
  • Minor merge artifact cleanup in ManufacturingSetup.Page.al.

These changes collectively improve the configurability, safety, and extensibility of the manufacturing order creation and management processes.

References: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]

Linked work

AB#618497
AB#576196

How I validated this

  • I read the full diff and it contains only changes I intended.
  • I built the affected app(s) locally with no new analyzer warnings.
  • I ran the change in Business Central and confirmed it behaves as expected.
  • I added or updated tests for the new behavior, or explained below why none are needed.

What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)

  • 10 new test codeunits covering BOM/Routing selection, source initialization, save targets, variants, versions, item structure, sales planning flow, and configuration.
  • 3 library codeunits + 2 page extensions for test support.
  • Ran wizard from Item and Sales Order Planning Page

Risk & compatibility

  • Make Standard code for production order creation and related tables work with temporary records - standard code with unsupported procedures have been guarded with if IsTemporary() then exit; pattern

…management

- Implement tests for creating and managing BOM and Routing versions
- Validate behavior when toggling version creation options
- Ensure correct error handling for missing version number series
- Confirm that new versions are created and certified as expected
@stevengrossGOB stevengrossGOB requested a review from a team July 3, 2026 09:56
@github-actions github-actions Bot added From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels Jul 3, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 3, 2026
@github-actions github-actions Bot added the needs-approval Workflow runs require maintainer approval to start label Jul 3, 2026
… unit pages

- Moved the 'RunProdDefinition' action to a new position in the Mfg. Item Card, Mfg. Item List, Mfg. Stockkeeping Unit Card, and Mfg. Stockkeeping Unit List pages for better accessibility.
- Updated the Production Definition Manager to handle empty temporary records gracefully.
- Enhanced the Production Definition Wizard page to ensure proper enabling of editable fields based on conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item needs-approval Workflow runs require maintainer approval to start

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant