---
id: change/bcapps/10917
type: change
title: "#10917 Bug 648535: Reprice subcontracting lines after scheduling"
summary: Subcontracting purchase lines are now repriced after backward scheduling finalizes the order date and manufacturing fields are transferred from requisition lines, ensuring prices reflect the correct effective date.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. req. wksh. make ord.
  - codeunit subc. purchase line ext
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:16.324Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 049258b463302e36649979d241a6f122c7eb87c0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10917
    title: "microsoft/BCApps#10917: Bug 648535: Reprice subcontracting lines after scheduling"
    date: "2026-09-07"
    commit: 049258b463302e36649979d241a6f122c7eb87c0
    t: null
    quote: Subcontracting purchase lines were priced before backward scheduling had finalized the purchase-line Order Date.
links:
  learn: []
  objects:
    - object/codeunit/20516
    - object/codeunit/20534
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10917
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10917
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-07T13:09:19Z"
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: 239
  deletions: 0
  al: 2
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20516
    page: codeunit/20516
    type: codeunit
    id: 20516
    name: Subc. Req. Wksh. Make Ord.
    app: Subcontracting
    status: modified
  - key: codeunit/20534
    page: codeunit/20534
    type: codeunit
    id: 20534
    name: Subc. Purchase Line Ext
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11197
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11197
fixes_issues: []
work_items:
  - 648535
systems:
  - manufacturing
quote: Subcontracting purchase lines were priced before backward scheduling had finalized the purchase-line Order Date.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10917 Bug 648535: Reprice subcontracting lines after scheduling

> Subcontracting purchase lines are now repriced after backward scheduling finalizes the order date and manufacturing fields are transferred from requisition lines, ensuring prices reflect the correct effective date.

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

## What changed

- Repricing occurs after requisition-to-purchase manufacturing fields are transferred
- Repricing is reapplied when Expected Receipt Date reschedules Order Date
- Repricing is triggered when Order Date is directly validated
- Non-subcontracting purchase lines remain unchanged via existing guards
- Added test coverage for the repricing scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20516 "Subc. Req. Wksh. Make Ord."](../../objects/codeunit/20516.md), Subcontracting: modified
- [Codeunit 20534 "Subc. Purchase Line Ext"](../../objects/codeunit/20534.md), Subcontracting: modified

## Also merged into

- [#11197](https://github.com/microsoft/BCApps/pull/11197) into `releases/29.x` on 2026-09-17

## Context

- Work items: AB#648535
- Labels: AL: Apps (W1), Subcontracting, Team: SCM
- Systems: manufacturing
- From the description: "Subcontracting purchase lines were priced before backward scheduling had finalized the purchase-line Order Date."

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).
