---
id: change/bcapps/10483
type: change
title: "#10483 [Subcontracting] Bug 647210 & 647791: Enable IT migration in production and keep Legacy Subcontracting on when app install is declined"
summary: The Legacy Subcontracting to Subcontracting app migration now works in production environments, and declining the app installation prompt no longer incorrectly disables the legacy feature.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit legacy subc. feature handler
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:40.416Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 70938a74d3cc9f6c3196322e0c8b0f69c5f4ddf0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10483
    title: "microsoft/BCApps#10483: [Subcontracting] Bug 647210 & 647791: Enable IT migration in production and keep Legacy Subcontracting on when app install is declined"
    date: "2026-09-01"
    commit: 70938a74d3cc9f6c3196322e0c8b0f69c5f4ddf0
    t: null
    quote: Disabling Legacy Subcontracting is now permitted in production when migration prerequisites are met.
links:
  learn: []
  objects:
    - object/codeunit/99008501-it
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10483
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10483
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-01T15:00:07Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "Ownership: Manual"
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 95
  deletions: 66
  al: 2
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:
  - path: src/Layers/IT/BaseApp/Manufacturing/Setup/ManufacturingSetup.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports:
  - number: 10760
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/10760
fixes_issues: []
work_items:
  - 647210
  - 647791
systems:
  - manufacturing
quote: Disabling Legacy Subcontracting is now permitted in production when migration prerequisites are met.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10483 [Subcontracting] Bug 647210 & 647791: Enable IT migration in production and keep Legacy Subcontracting on when app install is declined

> The Legacy Subcontracting to Subcontracting app migration now works in production environments, and declining the app installation prompt no longer incorrectly disables the legacy feature.

[Pull request](https://github.com/microsoft/BCApps/pull/10483) · merged into `main` (BC30) on 2026-09-01 by alexei-dobriansky · 3 files (+95 -66), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Removed sandbox-only restriction preventing production environments from migrating to Subcontracting app
- Fixed issue where declining app installation still disabled Legacy Subcontracting, leaving data stranded
- CheckCanDisableLegacySubcontracting now returns Boolean to properly control whether disabling proceeds
- Removed unused System.Environment import and sandbox-related error label
- Added test case to verify legacy feature stays enabled when app installation is declined
- 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
- `src/Layers/IT/BaseApp/Manufacturing/Setup/ManufacturingSetup.Page.al`: modified, not in the BC30 snapshot

## Also merged into

- [#10760](https://github.com/microsoft/BCApps/pull/10760) into `releases/29.x` on 2026-08-28

## Context

- Work items: AB#647210, AB#647791
- Labels: Ownership: Manual, Subcontracting, Team: SCM
- Systems: manufacturing
- From the description: "Disabling Legacy Subcontracting is now permitted in production when migration prerequisites are met."

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