---
id: change/bcapps/8757
type: change
title: "#8757 [Subcontracting] Bug 640115: Fix Subc. Order FlowField so subcontracting orders are visible in Purchase Order List"
summary: Fixed the Subc. Order FlowField to correctly identify subcontracting purchase orders so they display in the Purchase Order List view.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - tableextension subc. purchase header
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:17.041Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dc71c44d68dfbf0536afec4c7cb45bd597595a48
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/8757
    title: "microsoft/BCApps#8757: [Subcontracting] Bug 640115: Fix Subc. Order FlowField so subcontracting orders are visible in Purchase Order List"
    date: "2026-07-27"
    commit: dc71c44d68dfbf0536afec4c7cb45bd597595a48
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/tableextension/20509
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 8757
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/8757
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-27T09:50:56Z"
author: ChethanT
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: 3
  additions: 83
  deletions: 2
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: tableextension/20509
    page: tableextension/20509
    type: tableextension
    id: 20509
    name: Subc. Purchase Header
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640115
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #8757 [Subcontracting] Bug 640115: Fix Subc. Order FlowField so subcontracting orders are visible in Purchase Order List

> Fixed the Subc. Order FlowField to correctly identify subcontracting purchase orders so they display in the Purchase Order List view.

[Pull request](https://github.com/microsoft/BCApps/pull/8757) · merged into `main` (BC30) on 2026-07-27 by ChethanT · 3 files (+83 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- FlowField was incorrectly checking base table fields not set by the subcontracting flow
- Changed CalcFormula to use the extension field Subc. Purchase Line Type instead
- Subcontracting orders now visible in the Subcontracting Orders view
- Aligns logic with existing SubcManufacturingCue table extension
- Includes test to verify FlowField evaluates correctly after order creation
- Behaviour changes for users or extensions.

## AL objects touched

- [Table extension 20509 "Subc. Purchase Header"](../../objects/tableextension/20509.md), Subcontracting: modified

## Context

- Work items: AB#640115
- 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).
