code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#14844 Subcontracting: Skip subcontracting price calculation for routing lines without a work center

Subcontracting price calculation now skips routing lines without a work center, preventing errors when setting Standard Task Code on blank work center operations.

Pull request · merged into main (BC30) on 2026-12-04 by alexei-dobriansky · 2 files (+107 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • GetSubcPriceList exits early when routing line has blank work center No.
  • Routing lines without a work center have no subcontractor and no price to calculate
  • Existing behavior preserved for lines with assigned work centers
  • Blank-number checks now consistent across the subcontracting codeunit
  • New regression test validates the fix and confirms subcontracting operations still price correctly
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#661107
  • Labels: AL: Apps (W1), Engineering Factory, Team: SCM
  • Systems: manufacturing

No source states these links: they share an object, a model read them, or a person found the same subject.

  • Set up subcontractor prices — possibly related: Documents subcontracting price setup and calculation based on work centers and task codes. (model-linked)

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