code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#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 · 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

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

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

  • Set up subcontractor 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).