#12669 [Main]Subcontracting Order Date does not account for lead time before the routing operation starts
Subcontracting order dates now correctly calculate backward from the routing operation start date using the purchase lead time, and prices are refreshed when the order date changes on existing orders.
- 6files
- 5AL files
- 5objects
Pull request · merged into main (BC30) on 2026-10-14 by sanjmaurya · 6 files (+309 -13), 5 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Order Date calculation now accounts for purchase lead time from routing start date
- SetSubcontractingOrderDate method added to handle consistent date logic across Calculate Subcontracts and direct routing creation flows
- Carry Out Action no longer overwrites worksheet dates with purchase header order date for subcontracting lines
- Price refresh logic improved to treat pre-price fallback costs as automatic so correct prices apply to the calculated order date
- Expected and Requested Receipt Dates also set correctly on new and rescheduled purchase lines
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 20505 “Subcontracting Management”, Subcontracting: modified
- Codeunit 20516 “Subc. Req. Wksh. Make Ord.”, Subcontracting: modified
- Report 20505 “Subc. Calculate Subcontracts”, Subcontracting: modified
- Codeunit 20508 “Subc. Price Management”, Subcontracting: modified
- Codeunit 20557 “Subc. Purchase Order Creator”, Subcontracting: modified
Also merged into
- #12820 into
releases/29.xon 2026-10-21
Context
- Work items: AB#653858
- Labels: AL: Apps (W1), Team: SCM
- Systems: manufacturing
- From the description: “Subcontracting Order Date does not account for lead time before the routing operation starts”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Deprecated features in the application — possibly related: touches Report 20505 “Subc. Calculate Subcontracts”
- Calculate dates for purchases — possibly related: Documents purchase order date calculation with lead time lookups that directly applies to subcontracting order date fixes. (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).