code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#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.

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

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).