---
id: change/bcapps/12459
type: change
title: "#12459 [Master][All-E] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations"
summary: Fixed subcontractor pricing for time-based operations by multiplying the subcontractor price by the operation run time factor when creating purchase costs, with comprehensive test coverage.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. price management
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-17T01:12:15.147Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 54b929d854f98605c003617fd5bebcabb2d6f5b5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12459
    title: "microsoft/BCApps#12459: [Master][All-E] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations"
    date: "2026-10-12"
    commit: 54b929d854f98605c003617fd5bebcabb2d6f5b5
    t: null
    quote: Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations
links:
  learn: []
  objects:
    - object/codeunit/20508
  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 subcontractor price setup including time-based cost calculations for subcontracting.
      by: model
number: 12459
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12459
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-12T11:54:32Z"
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: 2
  additions: 400
  deletions: 10
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20508
    page: codeunit/20508
    type: codeunit
    id: 20508
    name: Subc. Price Management
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 653252
systems:
  - manufacturing
quote: Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12459 [Master][All-E] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations

> Fixed subcontractor pricing for time-based operations by multiplying the subcontractor price by the operation run time factor when creating purchase costs, with comprehensive test coverage.

[Pull request](https://github.com/microsoft/BCApps/pull/12459) · merged into `main` (BC30) on 2026-10-12 by sanjmaurya · 2 files (+400 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Subcontractor price now correctly incorporates operation run time for time-based unit cost calculations
- Shared calculation applies consistent pricing across requisition worksheets, purchase lines, and automatic repricing scenarios
- Operation time factor multiplied by price and rounded using configured unit-amount precision
- Automated tests added for worksheet calculation, carried-out lines, repricing, and direct purchase line creation
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#653252
- Labels: AL: Apps (W1), Team: SCM
- Systems: manufacturing
- From the description: "Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations"

## 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 subcontractor price setup including time-based cost calculations for subcontracting. (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).
