code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#9080 Bug 635072: Subcontracting order uses Prod. Order Line location, not Work Center

The subcontracting order creation process now consistently uses the production order line location instead of the work center location when creating purchase orders, aligning with the worksheet calculation path.

Pull request · merged into main (BC30) on 2026-07-08 by alexei-dobriansky · 2 files (+46 -7), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • The InsertReqWkshLine function previously overrode requisition line locations with work center locations
  • Both Create Subcontracting Order and CalculateSubcontracts paths now use production order line location consistently
  • Test coverage added to verify location handling in subcontracting workflows
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#635072
  • Labels: AL: Apps (W1), Subcontracting, Team: SCM
  • Systems: manufacturing
  • From the description: “Standardize on the Prod. Order Line location to match the two existing correct implementations.”

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