---
id: change/bcapps/14844
type: change
title: "#14844 Subcontracting: Skip subcontracting price calculation for routing lines without a work center"
summary: Subcontracting price calculation now skips routing lines without a work center, preventing errors when setting Standard Task Code on blank work center operations.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. price management
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-12-05T01:02:38.263Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: db3742a27bc0ac17942f29bab409ba96c594186b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14844
    title: "microsoft/BCApps#14844: Subcontracting: Skip subcontracting price calculation for routing lines without a work center"
    date: "2026-12-04"
    commit: db3742a27bc0ac17942f29bab409ba96c594186b
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/20508
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/subcontract-prices
      title: Set up subcontractor prices
      label: possibly related
      why: Documents subcontracting price setup and calculation based on work centers and task codes.
      by: model
number: 14844
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14844
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-04T17:10:25Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - Engineering Factory
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 107
  deletions: 0
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20508
    page: codeunit/20508
    type: codeunit
    id: 20508
    name: Subc. Price Management
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 661107
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #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](https://github.com/microsoft/BCApps/pull/14844) · 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

- [Codeunit 20508 "Subc. Price Management"](../../objects/codeunit/20508.md), Subcontracting: modified

## Context

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

## Possibly related

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

- [Set up subcontractor prices](https://learn.microsoft.com/dynamics365/business-central/subcontract-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).
