---
id: change/bcapps/8752
type: change
title: "#8752 [Bug Fix] #638531: Disable Open TO from PO actions on non-subcontracting lines"
summary: The Open TO from PO actions on subcontracting purchase order lines are now properly disabled for non-subcontracting lines instead of appearing enabled but doing nothing.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - pageextension subc. po subform
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:31.905Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 166439ed36ffe1a5656685863f78c12b97daa16f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/8752
    title: "microsoft/BCApps#8752: [Bug Fix] #638531: Disable Open TO from PO actions on non-subcontracting lines"
    date: "2026-08-17"
    commit: 166439ed36ffe1a5656685863f78c12b97daa16f
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/pageextension/20524
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 8752
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/8752
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-17T22:44:29Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 75
  deletions: 1
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: pageextension/20524
    page: pageextension/20524
    type: pageextension
    id: 20524
    name: Subc. PO Subform
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 638531
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #8752 [Bug Fix] #638531: Disable Open TO from PO actions on non-subcontracting lines

> The Open TO from PO actions on subcontracting purchase order lines are now properly disabled for non-subcontracting lines instead of appearing enabled but doing nothing.

[Pull request](https://github.com/microsoft/BCApps/pull/8752) · merged into `main` (BC30) on 2026-08-17 by ventselartur · 2 files (+75 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Transfer Order and Return Transfer Order actions disabled on purchase lines without production order numbers
- Action enablement now depends on line-level subcontracting status via OnAfterGetCurrRecord trigger
- Prevents confusing UI behavior where actions appear available but execute no operation
- Regression test added to verify correct action state for both subcontracting and non-subcontracting lines
- Behaviour changes for users or extensions.

## AL objects touched

- [Page extension 20524 "Subc. PO Subform"](../../objects/pageextension/20524.md), Subcontracting: modified

## Context

- Work items: AB#638531
- Labels: AL: Apps (W1), Subcontracting, Team: SCM
- Systems: manufacturing

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