---
id: change/bcapps/11292
type: change
title: "#11292 Bug 648535: Reprice subcontracting lines after scheduling"
summary: "Fixes repricing of subcontracting purchase lines in four cases: no matching price on carry-out, manually entered worksheet costs being overwritten, date edits on released orders failing, and lead-time-only rescheduling skipping repricing."
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. req. wksh. make ord.
  - codeunit subc. price management
  - codeunit subc. purchase line ext
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:15.699Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8b8571bf54443e2d385b6cab37845f19b1380898
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11292
    title: "microsoft/BCApps#11292: Bug 648535: Reprice subcontracting lines after scheduling"
    date: "2026-09-22"
    commit: 8b8571bf54443e2d385b6cab37845f19b1380898
    t: null
    quote: Detects whether the transferred worksheet value is the automatically selected price before repricing it
links:
  learn: []
  objects:
    - object/codeunit/20516
    - object/codeunit/20508
    - object/codeunit/20534
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11292
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11292
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-22T10:41:00Z"
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: 4
  additions: 695
  deletions: 34
  al: 3
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/20508
    page: codeunit/20508
    type: codeunit
    id: 20508
    name: Subc. Price Management
    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: []
fixes_issues: []
work_items:
  - 648535
systems:
  - manufacturing
quote: Detects whether the transferred worksheet value is the automatically selected price before repricing it
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11292 Bug 648535: Reprice subcontracting lines after scheduling

> Fixes repricing of subcontracting purchase lines in four cases: no matching price on carry-out, manually entered worksheet costs being overwritten, date edits on released orders failing, and lead-time-only rescheduling skipping repricing.

[Pull request](https://github.com/microsoft/BCApps/pull/11292) · merged into `main` (BC30) on 2026-09-22 by ChethanT · 4 files (+695 -34), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- When no price matches, carry-out uses the standard subcontracting worksheet cost formula instead of the raw routing rate
- Manually entered worksheet Direct Unit Cost is kept instead of being repriced
- Financial repricing is skipped for non-open purchase orders, avoiding line-discount status errors on date edits
- Planned-date repricing is keyed on the resulting Order Date so lead-time-only changes are repriced
- Adds regression tests for these pricing and date-edit cases
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#648535
- Labels: AL: Apps (W1), Team: SCM
- Systems: manufacturing
- From the description: "Detects whether the transferred worksheet value is the automatically selected price before repricing it"

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