code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#9087 Bug 641331: Copy Production Order Document lookup shows the current document

The Copy Production Order Document report now excludes the current production order from the document lookup when searching for a source document, preventing a late error when the same order is selected.

Pull request · merged into main (BC30) on 2026-08-12 by alexei-dobriansky · 1 file (+3 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Document lookup in LookupDocNo() now filters out the target production order
  • Filter only applies when the source status matches the target status
  • Prevents users from selecting the same document as the source, avoiding late-stage error
  • Aligns behavior with Copy Sales/Purchase Document reports
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#641331
  • Labels: Team: SCM
  • Systems: manufacturing

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