---
id: object/codeunit/1012
type: object
title: Codeunit 1012 "Job Jnl.-Post Line"
summary: Codeunit 1012 "Job Jnl.-Post Line" in Base Application (Microsoft.Projects.Project.Posting). 5 public procedures, 38 events. Present since at least BC23, still in BC30, changed in BC24-26.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "26"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: ee6abb25d75c153fb7b426a2a16ecac5433622165f302610ab98877411d27d54
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Projects/Project/Posting/JobJnlPostLine.Codeunit.al
    title: src/Layers/W1/BaseApp/Projects/Project/Posting/JobJnlPostLine.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1012
name: Job Jnl.-Post Line
namespace: Microsoft.Projects.Project.Posting
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 69
  events: 38
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 3
  calls: 13
  called_by: 7
  implements: 0
---

# Codeunit 1012 "Job Jnl.-Post Line"

> Codeunit 1012 "Job Jnl.-Post Line" in Base Application (Microsoft.Projects.Project.Posting). 5 public procedures, 38 events. Present since at least BC23, still in BC30, changed in BC24-26.

Base Application · Microsoft.Projects.Project.Posting · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Projects/Project/Posting/JobJnlPostLine.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Job Journal Line |
| Permissions | TableData "Job Ledger Entry" = rimd, TableData "Job Register" = rimd, TableData Job = rimd, TableData "Value Entry" = rimd |

## Events published

- `OnAfterApplyUsageLink(var JobLedgerEntry: Record "Job Ledger Entry")` (integration)
- `OnAfterCopyJobJnlLine(var JobJournalLine: Record "Job Journal Line"; var JobJournalLine2: Record "Job Journal Line")` (integration)
- `OnAfterJobLedgEntryInsert(var JobLedgerEntry: Record "Job Ledger Entry"; JobJournalLine: Record "Job Journal Line")` (integration)
  - subscribers: [Codeunit 1013 "Job Jnl.-Post Batch"](../codeunit/1013.md) OnAfterInsertResLedgEntry, [Codeunit 6263 "Sust. Job Post Subscriber"](../codeunit/6263.md) OnAfterJobLedgEntryInsert
- `OnAfterPostItem(var JobJournalLine2: Record "Job Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var JobLedgEntryNo: Integer)` (integration)
- `OnAfterRunCode(var JobJournalLine: Record "Job Journal Line"; var JobLedgEntryNo: Integer; var JobRegister: Record "Job Register"; var NextEntryNo: Integer)` (integration)
- `OnBeforeCheckJob(var JobJournalLine: Record "Job Journal Line"; Job: Record Job; var IsHandled: Boolean; var JobRegister: Record "Job Register"; var NextEntryNo: Integer)` (integration)
- `OnBeforeGetAndCheckJob(var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCode(var JobJournalLine: Record "Job Journal Line")` (integration)
- `OnBeforeApplyUsageLink(var JobLedgerEntry: Record "Job Ledger Entry"; var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCreateJobLedgEntry(var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean; var JobLedgEntryNo: Integer)` (integration)
- `OnBeforeCreateJobRegister(var JobJournalLine: Record "Job Journal Line")` (integration)
- `OnBeforeGetJobConsumptionValueEntry(var JobJournalLine: Record "Job Journal Line"; var Result: Boolean; var IsHandled: Boolean; var ValueEntry: Record "Value Entry")` (integration)
- `OnBeforeJobLedgEntryInsert(var JobLedgerEntry: Record "Job Ledger Entry"; JobJournalLine: Record "Job Journal Line")` (integration)
- `OnBeforeJobPlanningReservationExists(ItemNo: Code[20]; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeItemPosting(var JobJournalLine: Record "Job Journal Line"; var NextEntryNo: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeModifyValueEntry(var ValueEntry: Record "Value Entry"; JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforePostResource(var JobJournalLine: Record "Job Journal Line"; var JobJnlLine2: Record "Job Journal Line"; var EntryNo: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforePostWhseJnlLine(ItemJnlLine: Record "Item Journal Line"; OriginalQuantity: Decimal; OriginalQuantityBase: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeRunWithCheck(var JobJournalLine: Record "Job Journal Line")` (integration)
- `OnBeforeUpdateJobJnlLineAmount(var JobJnlLineToUpdate: Record "Job Journal Line"; var RemainingAmount: Decimal; var RemainingAmountLCY: Decimal; var RemainingQtyToTrack: Decimal; AmtRoundingPrecision: Decimal; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateJobJnlLineResourceGroupNo(var JobJnlLine2: Record "Job Journal Line"; ResJnlLine: Record "Res. Journal Line"; var IsHandled: Boolean)` (integration)
- `OnCheckJobOnBeforeTestJobTaskType(var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)` (integration)
- `OnCodeOnAfterCalcShouldPostUsage(var JobJournalLine2: Record "Job Journal Line"; var ShouldPostUsage: Boolean; var JobLedgEntryNo: Integer)` (integration)
- `OnCreateJobLedgEntryOnBeforeAssignQtyCostPrice(var JobLedgEntry: Record "Job Ledger Entry"; JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)` (integration)
- `OnCreateJobLedgerEntryOnAfterAssignLedgerEntryTypeAndNo(var JobLedgEntry: Record "Job Ledger Entry"; JobJournalLine: Record "Job Journal Line"; GLEntryNo: Integer)` (integration)
- `OnGetJobConsumptionValueEntryFilter(var ValueEntry: Record "Value Entry"; JobJournalLine: Record "Job Journal Line"; LocalJobJournalLine: Record "Job Journal Line")` (integration)
- `OnPostItemOnAfterApplyItemTracking(var JobJournalLine: Record "Job Journal Line"; ItemLedgerEntry: Record "Item Ledger Entry"; var JobLedgerEntry: Record "Job Ledger Entry"; var SkipJobLedgerEntry: Boolean)` (integration)
- `OnPostItemOnAfterSetSkipJobLedgerEntry(var JobJnlLine2: Record "Job Journal Line"; ItemLedgEntry: Record "Item Ledger Entry"; var SkipJobLedgerEntry: Boolean)` (integration)
- `OnPostItemOnBeforeGetJobConsumptionValueEntry(var JobJournalLine: Record "Job Journal Line"; var NextEntryNo: Integer)` (integration)
- `OnPostItemOnBeforeUpdateTotalAmounts(var JobJournalLine: Record "Job Journal Line"; ItemLedgerEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry")` (integration)
- `OnPostItemOnBeforeAssignItemJnlLine(var JobJournalLine: Record "Job Journal Line"; var JobJournalLine2: Record "Job Journal Line"; var ItemJnlLine: Record "Item Journal Line"; JobPlanningLine: Record "Job Planning Line")` (integration)
  - subscribers: [Codeunit 6262 "Sust. Job Subscriber"](../codeunit/6262.md) OnPostItemJnlLineOnAfterPrepareItemJnlLine
- `OnBeforeCreateJobLedgEntryFromPostItem(var JobJournalLine: Record "Job Journal Line"; var ValueEntry: Record "Value Entry"; var IsHandled: Boolean)` (integration)
- `OnPostItemOnAfterPostWhseJnlLine(var JobJournalLine2: Record "Job Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")` (integration)
- `OnCodeOnBeforeCheckLine(var JobJournalLine: Record "Job Journal Line"; CalledFromInvtPutawayPick: Boolean; var CheckLine: Boolean)` (integration)
- `OnBeforeGetNextEntryNo(var JobJournalLine: Record "Job Journal Line"; var NextEntryNo: Integer; var IsHandled: Boolean; var JobLedgerEntry: Record "Job Ledger Entry")` (integration)
- `OnIsertJobRegisterOnBeforeInsert(var JobJournalLine: Record "Job Journal Line"; var JobRegister: Record "Job Register")` (integration)
- `OnAfterGetNextEntryNo(var JobLedgerEntry: Record "Job Ledger Entry"; var NextEntryNo: Integer)` (integration)
- `OnAfterUpdateJobJnlLineTotalAmounts(var JobJournalLine: Record "Job Journal Line"; AmtRoundingPrecision: Decimal; GLAmtRoundingPrecision: Decimal)` (integration)

## Procedures

- `RunWithCheck(var JobJnlLine2: Record "Job Journal Line"): Integer`
- `SetCalledFromInvtPutawayPick(NewCalledFromInvtPutawayPick: Boolean)` (internal)
- `SetCalledFromPurchase(NewCalledFromPurchase: Boolean)` (internal)
- `CreateJobLedgEntry(JobJnlLine2: Record "Job Journal Line"): Integer`
- `SetGLEntryNo(GLEntryNo2: Integer)`

Plus 26 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 210 "Job Journal Line"](../table/210.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1011 "Job Jnl.-Check Line"](../codeunit/1011.md) (3 calls: `Code → RunCheck`, `Code → SetCalledFromInvtPutawayPick`, `Code → SetCalledFromPurchase`)
- [Codeunit 1026 "Job Link Usage"](../codeunit/1026.md) (3 calls: `ApplyToMatchingJobPlanningLine → FindMatchingJobPlanningLine`, `CreateJobLedgEntry → ApplyUsage`, `CreateJobLedgEntry → FindMatchingJobPlanningLine`)
- [Codeunit 900 "Assembly-Post"](../codeunit/900.md) (3 calls: `PostATO → InitPostATO`, `PostATO → PostATO`, `PostATO → SetPostingDate`)
- [Codeunit 1004 "Job Transfer Line"](../codeunit/1004.md) (2 calls: `ApplyToMatchingJobPlanningLine → FromJnlLineToLedgEntry`, `CreateJobLedgEntry → FromJnlLineToLedgEntry`)
- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (2 calls: `PostItem → CollectTrackingSpecification`, `PostItem → RunWithCheck`)
- [Codeunit 7302 "WMS Management"](../codeunit/7302.md) (2 calls: `PostWhseJnlLine → CheckWhseJnlLine`, `PostWhseJnlLine → CreateWhseJnlLine`)
- [Codeunit 9500 "Sequence No. Mgt."](../codeunit/9500.md) (2 calls: `RunWithCheck → ClearSequenceNoCheck`, `ValidateSequenceNo → ValidateSeqNo`)
- [Codeunit 1001 "Job Post-Line"](../codeunit/1001.md) (1 call: `CreateJobLedgEntry → InsertPlLineFromLedgEntry`)
- [Codeunit 212 "Res. Jnl.-Post Line"](../codeunit/212.md) (1 call: `PostResource → RunWithCheck`)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `PostItem → QtyRndPrecision`)
- [Codeunit 6500 "Item Tracking Management"](../codeunit/6500.md) (1 call: `PostWhseJnlLine → SplitWhseJnlLine`)
- [Codeunit 7301 "Whse. Jnl.-Register Line"](../codeunit/7301.md) (1 call: `PostWhseJnlLine → RegisterWhseJnlLine`)
- [Codeunit 99000844 "Job Jnl. Line-Reserve"](../codeunit/99000844.md) (1 call: `PostItem → TransJobJnlLineToItemJnlLine`)

## Called by

- [Codeunit 1001 "Job Post-Line"](../codeunit/1001.md) (8 calls: `PostGenJnlLine → RunWithCheck`, `PostGenJnlLine → SetGLEntryNo`, `PostJobOnPurchaseLine → RunWithCheck`, …)
- [Codeunit 6610 "FS Int. Table Subscriber"](../codeunit/6610.md) (2 calls: `ConditionallyPostJobJournalLine → RunWithCheck`, `PostJobJournalLine → RunWithCheck`)
- [Codeunit 7324 "Whse.-Activity-Post"](../codeunit/7324.md) (2 calls: `PostJobUsage → RunWithCheck`, `PostJobUsage → SetCalledFromInvtPutawayPick`)
- [Codeunit 1013 "Job Jnl.-Post Batch"](../codeunit/1013.md) (1 call: `Code → RunWithCheck`)
- [Codeunit 5987 "Serv-Posting Journals Mgt."](../codeunit/5987.md) (1 call: `PostJobJnlLine → RunWithCheck`)
- [Codeunit 6974 "Cancel Posted Expense Report"](../codeunit/6974.md) (1 call: `ReverseJobLedgerEntry → RunWithCheck`)
- [Codeunit 6987 "Expense Report-Post"](../codeunit/6987.md) (1 call: `PostProjectJnlLine → RunWithCheck`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-26

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Job Jnl.-Post Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
