---
id: change/bcapps/13103
type: change
title: "#13103 Main [All-E] Vendor-supplied component purchase lines use incorrect requirement and Order DatesInitial commit"
summary: Vendor-supplied component purchase lines in subcontracting now use correct requirement and order dates, matching production order component due dates while preserving routing operation ending dates for service lines.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. notification mgmt.
  - codeunit subc. comp. factbox mgmt.
  - codeunit subc. req. wksh. make ord.
  - tableextension subc. purchase line
  - tableextension subc. purchase line archive
  - codeunit subc. purchase order creator
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-12-03T01:07:13.010Z"
  flags: []
generated:
  at: "2026-12-04T00:17:10.168Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 07fd93762944319816f72ea89cd05b9d304a0205
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13103
    title: "microsoft/BCApps#13103: Main [All-E] Vendor-supplied component purchase lines use incorrect requirement and Order DatesInitial commit"
    date: "2026-12-01"
    commit: 07fd93762944319816f72ea89cd05b9d304a0205
    t: null
    quote: Purchase requisition worksheet orders for subcontracting could use incorrect dates for vendor-supplied component purchase lines.
links:
  learn: []
  objects:
    - object/codeunit/20506
    - object/codeunit/20562
    - object/codeunit/20516
    - object/tableextension/20512
    - object/tableextension/20516
    - object/codeunit/20557
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/contoso-coffee/manufacturing/subcontracting-component-supply-methods
      title: Use Different Component Supply Methods in Subcontracting
      label: possibly related
      why: Component supply methods in subcontracting and vendor-supplied components planning implications.
      by: model
number: 13103
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13103
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-01T03:56:05Z"
author: sanjmaurya
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: 8
  additions: 1523
  deletions: 57
  al: 6
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20506
    page: codeunit/20506
    type: codeunit
    id: 20506
    name: Subc. Notification Mgmt.
    app: Subcontracting
    status: modified
  - key: codeunit/20562
    page: codeunit/20562
    type: codeunit
    id: 20562
    name: Subc. Comp. Factbox Mgmt.
    app: Subcontracting
    status: modified
  - key: codeunit/20516
    page: codeunit/20516
    type: codeunit
    id: 20516
    name: Subc. Req. Wksh. Make Ord.
    app: Subcontracting
    status: modified
  - key: tableextension/20512
    page: tableextension/20512
    type: tableextension
    id: 20512
    name: Subc. Purchase Line
    app: Subcontracting
    status: modified
  - key: tableextension/20516
    page: tableextension/20516
    type: tableextension
    id: 20516
    name: Subc. Purchase Line Archive
    app: Subcontracting
    status: modified
  - key: codeunit/20557
    page: codeunit/20557
    type: codeunit
    id: 20557
    name: Subc. Purchase Order Creator
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650504
systems:
  - manufacturing
quote: Purchase requisition worksheet orders for subcontracting could use incorrect dates for vendor-supplied component purchase lines.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #13103 Main [All-E] Vendor-supplied component purchase lines use incorrect requirement and Order DatesInitial commit

> Vendor-supplied component purchase lines in subcontracting now use correct requirement and order dates, matching production order component due dates while preserving routing operation ending dates for service lines.

[Pull request](https://github.com/microsoft/BCApps/pull/13103) · merged into `main` (BC30) on 2026-12-01 by sanjmaurya · 8 files (+1523 -57), 6 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Subcontracting purchase-line dates now derive from requisition lines instead of overwriting with purchase header dates
- Vendor-supplied component purchase-line dates synchronize with production order component due dates during creation and rescheduling
- Purchase requisition worksheet order creation and rescheduling no longer miscalculate dates for subcontracting components
- Routing operation ending dates are preserved for subcontracting service lines
- New test assertions verify component receipt dates, scheduled order dates, and service line routing ending dates
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20506 "Subc. Notification Mgmt."](../../objects/codeunit/20506.md), Subcontracting: modified
- [Codeunit 20562 "Subc. Comp. Factbox Mgmt."](../../objects/codeunit/20562.md), Subcontracting: modified
- [Codeunit 20516 "Subc. Req. Wksh. Make Ord."](../../objects/codeunit/20516.md), Subcontracting: modified
- [Table extension 20512 "Subc. Purchase Line"](../../objects/tableextension/20512.md), Subcontracting: modified
- [Table extension 20516 "Subc. Purchase Line Archive"](../../objects/tableextension/20516.md), Subcontracting: modified
- [Codeunit 20557 "Subc. Purchase Order Creator"](../../objects/codeunit/20557.md), Subcontracting: modified

## Context

- Work items: AB#650504
- Labels: AL: Apps (W1), Team: SCM
- Systems: manufacturing
- From the description: "Purchase requisition worksheet orders for subcontracting could use incorrect dates for vendor-supplied component purchase lines."

## Possibly related

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

- [Use Different Component Supply Methods in Subcontracting](https://learn.microsoft.com/dynamics365/business-central/contoso-coffee/manufacturing/subcontracting-component-supply-methods) — possibly related: Component supply methods in subcontracting and vendor-supplied components planning implications. (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).
