#9803 [master] Variant Code mandatory should not allow to refresh the production order with no variant code
The Refresh Production Order report now validates that when an item requires a variant code, the production order cannot be refreshed without specifying one.
- 4files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-31 by neeleshsinghal · 4 files (+240 -6), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added CheckVariantCodeMandatory validation to the report
- Prevents refreshing production orders when variant code is mandatory but not provided
- Introduced OnBeforeCheckVariantCodeMandatory publisher event for extensibility
- Test coverage added for the new validation logic
- Fixes issue where mandatory variant requirement was being bypassed
- Behaviour changes for users or extensions.
AL objects touched
- Report 99001025 “Refresh Production Order”, Base Application: modified
Context
- Work items: AB#633092
- Labels: Team: SCM
- Systems: manufacturing
- From the description: “Variant Code mandatory should not allow to refresh the production order with no variant code”
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).