---
id: change/bcapps/12584
type: change
title: "#12584 Bug 649862: [Subcontracting] Restore Get Receipt Lines for subcontracting receipts"
summary: Restores the ability to copy uninvoiced subcontracting receipts to separate purchase invoices, allowing cumulative vendor invoicing while correctly assigning vendor costs to the original Capacity Ledger Entry and production order.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. purch. post ext
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-22T01:10:58.676Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 643e393adc8fe55dd17f46c5da29ef90fd9cdeb7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12584
    title: "microsoft/BCApps#12584: Bug 649862: [Subcontracting] Restore Get Receipt Lines for subcontracting receipts"
    date: "2026-10-20"
    commit: 643e393adc8fe55dd17f46c5da29ef90fd9cdeb7
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/20535
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/subcontract-item-charges
      title: Assign item charges to subcontracting receipts
      label: possibly related
      why: Documents assigning item charges to subcontracting receipts as part of subcontracting receipt processing.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/purchasing-how-to-combine-receipts
      title: Combine Receipts or PO Lines on a Single Invoice
      label: possibly related
      why: Documents combining receipts onto purchase invoices using Get Receipt Lines functionality.
      by: model
number: 12584
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12584
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-20T09:51:27Z"
author: ChethanT
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: 5
  additions: 1239
  deletions: 117
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20535
    page: codeunit/20535
    type: codeunit
    id: 20535
    name: Subc. Purch. Post Ext
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12433
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12433
fixes_issues: []
work_items:
  - 649862
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12584 Bug 649862: [Subcontracting] Restore Get Receipt Lines for subcontracting receipts

> Restores the ability to copy uninvoiced subcontracting receipts to separate purchase invoices, allowing cumulative vendor invoicing while correctly assigning vendor costs to the original Capacity Ledger Entry and production order.

[Pull request](https://github.com/microsoft/BCApps/pull/12584) · merged into `main` (BC30) on 2026-10-20 by ChethanT · 5 files (+1239 -117), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Posted, uninvoiced subcontracting receipts can again be pulled into a separate purchase invoice with Get Receipt Lines
- Posting assigns the vendor cost to the original Capacity Ledger Entry without duplicate capacity or output entries
- Covers untracked receipts, item-tracked non-final operation receipts, partial receipts and invoices, put-away, multiple receipts and orders, and alternate units of measure
- Item-tracked final-operation receipts, warehouse receipts with tracked final output, and cancel, correct or corrective credit memo on these invoices stay explicitly blocked
- Get Order Lines remains excluded
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20535 "Subc. Purch. Post Ext"](../../objects/codeunit/20535.md), Subcontracting: modified

## Also merged into

- [#12433](https://github.com/microsoft/BCApps/pull/12433) into `releases/29.x` on 2026-10-21

## Context

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

- [Assign item charges to subcontracting receipts](https://learn.microsoft.com/dynamics365/business-central/subcontract-item-charges) — possibly related: Documents assigning item charges to subcontracting receipts as part of subcontracting receipt processing. (model-linked)
- [Combine Receipts or PO Lines on a Single Invoice](https://learn.microsoft.com/dynamics365/business-central/purchasing-how-to-combine-receipts) — possibly related: Documents combining receipts onto purchase invoices using Get Receipt Lines functionality. (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).
