---
id: change/bcapps/14645
type: change
title: "#14645 [29.x][Subcontracting] Create Return includes components and WIP from unrelated purchase orders- #14502"
summary: Return transfer orders in subcontracting now correctly filter by purchase order number to prevent including lines from unrelated orders.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - report subc. create subcreturnorder
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-11-30T15:07:53.891Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0dc52b8d714a7f2d847ee8414cac3108b663d9aa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14645
    title: "microsoft/BCApps#14645: [29.x][Subcontracting] Create Return includes components and WIP from unrelated purchase orders- #14502"
    date: "2026-11-30"
    commit: 0dc52b8d714a7f2d847ee8414cac3108b663d9aa
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/report/20502
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/sales-how-process-sales-returns-orders
      title: Process sales return orders
      label: possibly related
      why: Documents sales return orders process, relevant to subcontracting return order creation
      by: model
number: 14645
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14645
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-30T09:54:37Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 232
  deletions: 10
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: report/20502
    page: report/20502
    type: report
    id: 20502
    name: Subc. Create SubCReturnOrder
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 653930
systems:
  - manufacturing
quote: null
joined_against:
  major: "29"
  commit: 0dc52b8d714a7f2d847ee8414cac3108b663d9aa
---

# #14645 [29.x][Subcontracting] Create Return includes components and WIP from unrelated purchase orders- #14502

> Return transfer orders in subcontracting now correctly filter by purchase order number to prevent including lines from unrelated orders.

[Pull request](https://github.com/microsoft/BCApps/pull/14645) · merged into `releases/29.x` (BC29) on 2026-11-30 by Shikhverma · 2 files (+232 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Return transfer headers are now filtered by Subcontr. Purch. Order No. to isolate purchase orders
- Prevents lines from different purchase orders being incorrectly included in return transfers
- Regression test coverage expanded to verify purchase order isolation
- Affects the Subc. Create SubCReturnOrder report logic
- Behaviour changes for users or extensions.

## AL objects touched

- [Report 20502 "Subc. Create SubCReturnOrder"](../../objects/report/20502.md), Subcontracting: modified

## Context

- Work items: AB#653930
- Labels: AL: Apps (W1), 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.

- [Process sales return orders](https://learn.microsoft.com/dynamics365/business-central/sales-how-process-sales-returns-orders) — possibly related: Documents sales return orders process, relevant to subcontracting return order creation (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).
