---
id: change/bcapps/13012
type: change
title: "#13012 [Subcontracting] Assign worksheet suggestions to existing purchase orders"
summary: Subcontracting worksheet users can now assign suggestions to existing open purchase orders instead of always creating new orders, with filtering and validation for purchase order compatibility.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - report subc. calculate subcontracts
  - codeunit subc. purchase order creator
  - codeunit subc. req.line extension
  - tableextension subc. requisitionline
  - page subc. subcontracting worksheet
  - codeunit mfg. requisition line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:41.641Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8c39be5188affd0d5516d6c8d062ca1cff53b1eb
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13012
    title: "microsoft/BCApps#13012: [Subcontracting] Assign worksheet suggestions to existing purchase orders"
    date: "2026-11-18"
    commit: 8c39be5188affd0d5516d6c8d062ca1cff53b1eb
    t: null
    quote: Users can now attach a new subcontracting suggestion in the Subcontracting Worksheet to an existing open purchase order.
links:
  learn: []
  objects:
    - object/report/20505
    - object/codeunit/20557
    - object/codeunit/20513
    - object/tableextension/20510
    - object/page/20504
    - object/codeunit/99000866
    - object/tableextension/99000860
    - object/codeunit/333
    - object/report/99001020
    - object/table/246
    - object/codeunit/99000814
    - object/report/99001015
    - object/page/9307
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-w1
      title: Deprecated features in the application
      label: possibly related
      why: touches Report 20505 "Subc. Calculate Subcontracts"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-powerbi-scheduled-receipt
      title: Scheduled Receipt Power BI Report
      label: possibly related
      why: touches Table 246 "Requisition Line"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/subcontract-order
      title: Order subcontracting
      label: possibly related
      why: Documents subcontracting purchase orders created from production routing, which the worksheet suggestion assignment feature enables.
      by: model
number: 13012
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13012
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-18T10:49:47Z"
author: stevengrossGOB
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: feature
behavior_change: true
breaking: true
files:
  count: 32
  additions: 3730
  deletions: 552
  al: 21
apps:
  - Base Application
  - Subcontracting
objects_touched:
  - key: report/20505
    page: report/20505
    type: report
    id: 20505
    name: Subc. Calculate Subcontracts
    app: Subcontracting
    status: modified
  - key: codeunit/20557
    page: codeunit/20557
    type: codeunit
    id: 20557
    name: Subc. Purchase Order Creator
    app: Subcontracting
    status: modified
  - key: codeunit/20513
    page: codeunit/20513
    type: codeunit
    id: 20513
    name: Subc. Req.Line Extension
    app: Subcontracting
    status: modified
  - key: tableextension/20510
    page: tableextension/20510
    type: tableextension
    id: 20510
    name: Subc. RequisitionLine
    app: Subcontracting
    status: modified
  - key: page/20504
    page: page/20504
    type: page
    id: 20504
    name: Subc. Subcontracting Worksheet
    app: Subcontracting
    status: modified
  - key: codeunit/99000866
    page: codeunit/99000866
    type: codeunit
    id: 99000866
    name: Mfg. Requisition Line
    app: Base Application
    status: modified
  - key: tableextension/99000860
    page: tableextension/99000860
    type: tableextension
    id: 99000860
    name: Mfg. Requisition Line
    app: Base Application
    status: modified
  - key: codeunit/333
    page: codeunit/333
    type: codeunit
    id: 333
    name: Req. Wksh.-Make Order
    app: Base Application
    status: modified
  - key: report/99001020
    page: report/99001020
    type: report
    id: 99001020
    name: Carry Out Action Msg. - Plan.
    app: Base Application
    status: modified
  - key: table/246
    page: table/246
    type: table
    id: 246
    name: Requisition Line
    app: Base Application
    status: modified
  - key: codeunit/99000814
    page: codeunit/99000814
    type: codeunit
    id: 99000814
    name: Requisition Line Management
    app: Base Application
    status: added
  - key: report/99001015
    page: report/99001015
    type: report
    id: 99001015
    name: Calculate Subcontracts
    app: Base Application
    status: modified
  - key: page/9307
    page: page/9307
    type: page
    id: 9307
    name: Purchase Order List
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/IT/BaseApp/Inventory/Requisition/ReqWkshMakeOrder.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Inventory/Requisition/RequisitionLine.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Manufacturing/Planning/CalculateSubcontracts.Report.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Purchases/Document/PurchaseOrderList.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NA/BaseApp/Purchases/Document/PurchaseOrderList.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 634223
systems:
  - inventory
  - manufacturing
  - purchasing
quote: Users can now attach a new subcontracting suggestion in the Subcontracting Worksheet to an existing open purchase order.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #13012 [Subcontracting] Assign worksheet suggestions to existing purchase orders

> Subcontracting worksheet users can now assign suggestions to existing open purchase orders instead of always creating new orders, with filtering and validation for purchase order compatibility.

[Pull request](https://github.com/microsoft/BCApps/pull/13012) · merged into `main` (BC30) on 2026-11-18 by stevengrossGOB (community contribution) · 32 files (+3730 -552), 21 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds purchase order targeting to requisition lines with compatibility checks for vendor, customer, shipping, currency and purchasing code
- Worksheet gains actions for assigning purchase orders, clearing targets, and showing assigned orders
- Reference semantics changed: Ref. Order Type now indicates Purchase with empty Ref. Order No., while Prod. Order No. tracks the production order
- Requisition Line Management codeunit removes target if action message changes from New
- Comprehensive test coverage with 27 new tests for assignment, validation, and edge cases
- Breaking: existing extensions can stop compiling or working.

## AL objects touched

- [Report 20505 "Subc. Calculate Subcontracts"](../../objects/report/20505.md), Subcontracting: modified
- [Codeunit 20557 "Subc. Purchase Order Creator"](../../objects/codeunit/20557.md), Subcontracting: modified
- [Codeunit 20513 "Subc. Req.Line Extension"](../../objects/codeunit/20513.md), Subcontracting: modified
- [Table extension 20510 "Subc. RequisitionLine"](../../objects/tableextension/20510.md), Subcontracting: modified
- [Page 20504 "Subc. Subcontracting Worksheet"](../../objects/page/20504.md), Subcontracting: modified
- [Codeunit 99000866 "Mfg. Requisition Line"](../../objects/codeunit/99000866.md), Base Application: modified
- [Table extension 99000860 "Mfg. Requisition Line"](../../objects/tableextension/99000860.md), Base Application: modified
- [Codeunit 333 "Req. Wksh.-Make Order"](../../objects/codeunit/333.md), Base Application: modified
- [Report 99001020 "Carry Out Action Msg. - Plan."](../../objects/report/99001020.md), Base Application: modified
- [Table 246 "Requisition Line"](../../objects/table/246.md), Base Application: modified
- [Codeunit 99000814 "Requisition Line Management"](../../objects/codeunit/99000814.md), Base Application: added
- [Report 99001015 "Calculate Subcontracts"](../../objects/report/99001015.md), Base Application: modified
- [Page 9307 "Purchase Order List"](../../objects/page/9307.md), Base Application: modified
- `src/Layers/IT/BaseApp/Inventory/Requisition/ReqWkshMakeOrder.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Inventory/Requisition/RequisitionLine.Table.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Manufacturing/Planning/CalculateSubcontracts.Report.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Purchases/Document/PurchaseOrderList.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NA/BaseApp/Purchases/Document/PurchaseOrderList.Page.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#634223
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Subcontracting, Team: SCM
- Systems: inventory, manufacturing, purchasing
- From the description: "Users can now attach a new subcontracting suggestion in the Subcontracting Worksheet to an existing open purchase order."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Deprecated features in the application](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-w1) — possibly related: touches Report 20505 "Subc. Calculate Subcontracts"
- [Scheduled Receipt Power BI Report](https://learn.microsoft.com/dynamics365/business-central/inventory-powerbi-scheduled-receipt) — possibly related: touches Table 246 "Requisition Line"
- [Order subcontracting](https://learn.microsoft.com/dynamics365/business-central/subcontract-order) — possibly related: Documents subcontracting purchase orders created from production routing, which the worksheet suggestion assignment feature enables. (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).
