---
id: change/bcapps/12783
type: change
title: "#12783  [29.x] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations"
summary: Subcontractor price calculation for time-based operations now correctly multiplies the unit cost by the operation's run time factor when creating purchase requisitions and orders.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit subc. price management
  - codeunit subc. purchase order creator
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-24T00:37:49.985Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 696cbb4c48705e5ff9029de93666124994b5b4dd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12783
    title: "microsoft/BCApps#12783:  [29.x] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations"
    date: "2026-10-23"
    commit: 696cbb4c48705e5ff9029de93666124994b5b4dd
    t: null
    quote: The operation's run time was not included, resulting in an incorrect Direct Unit Cost on requisition worksheet and purchase lines.
links:
  learn: []
  objects:
    - object/codeunit/20508
    - object/codeunit/20557
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/subcontract-prices
      title: Set up subcontractor prices
      label: possibly related
      why: Documents setting up subcontractor prices with run time and cost calculation for manufacturing operations.
      by: model
number: 12783
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12783
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-10-23T08:20:37Z"
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: 3
  additions: 550
  deletions: 16
  al: 2
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20508
    page: codeunit/20508
    type: codeunit
    id: 20508
    name: Subc. Price Management
    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:
  - 651332
systems:
  - manufacturing
quote: The operation's run time was not included, resulting in an incorrect Direct Unit Cost on requisition worksheet and purchase lines.
joined_against:
  major: "29"
  commit: dc14cfd1217fbd3fa364b63565e752e5f0653955
---

# #12783  [29.x] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations

> Subcontractor price calculation for time-based operations now correctly multiplies the unit cost by the operation's run time factor when creating purchase requisitions and orders.

[Pull request](https://github.com/microsoft/BCApps/pull/12783) · merged into `releases/29.x` (BC29) on 2026-10-23 by sanjmaurya · 3 files (+550 -16), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Subcontractor price for Time-based operations ignored the routing line's operation time factor
- New shared calculation multiplies the subcontractor price by the operation time factor and rounds to the unit-amount precision
- Applied to requisition worksheet lines, carried-out purchase lines, automatic repricing and directly created purchase lines
- Automated test added covering those pricing scenarios
- Fixes an incorrect Direct Unit Cost on subcontracting purchase and requisition lines
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20508 "Subc. Price Management"](../../objects/codeunit/20508.md), Subcontracting: modified
- [Codeunit 20557 "Subc. Purchase Order Creator"](../../objects/codeunit/20557.md), Subcontracting: modified

## Context

- Work items: AB#651332
- Labels: AL: Apps (W1), Team: SCM
- Systems: manufacturing
- From the description: "The operation's run time was not included, resulting in an incorrect Direct Unit Cost on requisition worksheet and purchase lines."

## Possibly related

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

- [Set up subcontractor prices](https://learn.microsoft.com/dynamics365/business-central/subcontract-prices) — possibly related: Documents setting up subcontractor prices with run time and cost calculation for manufacturing operations. (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).
