---
id: change/bcapps/10208
type: change
title: "#10208 [Subcontracting] Detect subcontracting purchase/transfer orders in legacy data check"
summary: The legacy data check for subcontracting now detects production-order-linked purchase and transfer orders to ensure migration runs when needed, and renames an internal function for clarity.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit legacy subc. feature handler
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:12.655Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 702fbbcd5d8139760583f606eda4d16156bd178a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10208
    title: "microsoft/BCApps#10208: [Subcontracting] Detect subcontracting purchase/transfer orders in legacy data check"
    date: "2026-08-13"
    commit: 702fbbcd5d8139760583f606eda4d16156bd178a
    t: null
    quote: The migration check missed them as a result, disabling Legacy Subcontracting skipped a needed data migration.
links:
  learn: []
  objects:
    - object/codeunit/99008501-it
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10208
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10208
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-13T10:00:50Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 112
  deletions: 4
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99008501
    page: codeunit/99008501-it
    type: codeunit
    id: 99008501
    name: Legacy Subc. Feature Handler
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646168
systems:
  - manufacturing
quote: The migration check missed them as a result, disabling Legacy Subcontracting skipped a needed data migration.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10208 [Subcontracting] Detect subcontracting purchase/transfer orders in legacy data check

> The legacy data check for subcontracting now detects production-order-linked purchase and transfer orders to ensure migration runs when needed, and renames an internal function for clarity.

[Pull request](https://github.com/microsoft/BCApps/pull/10208) · merged into `main` (BC30) on 2026-08-13 by alexei-dobriansky · 2 files (+112 -4), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Adds detection for subcontracting purchase orders linked to production orders
- Adds detection for subcontracting transfer orders linked to production orders
- Renames internal function OpenSubcontractingTransfersExist to OpenWIPTransfersExist for accuracy
- Fixes migration gaps where legacy data existed but was not detected
- Includes new tests to verify detection of linked orders without WIP Item flag
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 99008501 "Legacy Subc. Feature Handler"](../../objects/codeunit/99008501-it.md), Base Application (IT layer): modified

## Context

- Work items: AB#646168
- Labels: Subcontracting, Team: SCM
- Systems: manufacturing
- From the description: "The migration check missed them as a result, disabling Legacy Subcontracting skipped a needed data migration."

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