---
title: "Codeunit 20515 Subc. ItemJnlPostLine Ext, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/points/
object: https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/
app: "Subcontracting"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 20515 Subc. ItemJnlPostLine Ext, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/points/

5 procedures and triggers with a step in src/Apps/W1/Subcontracting/App/src/General/SubcItemJnlPostLineExt.Codeunit.al, in source order, read from the text, not from a run.

## OnAfterInitItemLedgEntry

[Line 24](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L24), local.

- [28](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L28) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [33](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L33) calls `UpdateNewItemLedgerEntry`

## OnBeforeInsertCapLedgEntry

[Line 37](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L37), local.

- [41](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L41) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [46](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L46) calls `UpdateCapLedgerEntry`

## OnAfterPostOutput

[Line 56](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L56), local.

- [60](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L60) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [65](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L65) calls `UpdateProdOrderRoutingLine`

## Item Jnl.-Post Line_OnBeforeInsertCapValueEntry

[Line 69](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L69), local.

- [73](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L73) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [78](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L78) calls `ClearInvoicedQuantityForItemChargeSubAssign`
- [79](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L79) calls `CopyItemChargeNoForItemChargeSubAssign`

## UpdateProdOrderRoutingLine

[Line 82](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L82), local.

- [105](https://jonas-paprotka.de/ref/codeunit/20515-subc-itemjnlpostline-ext/source/#L105) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
