---
id: object/table/5223
type: object
title: Table 5223 "Detailed Employee Ledger Entry"
summary: Table 5223 "Detailed Employee Ledger Entry" in Base Application (Microsoft.HumanResources.Payables). 30 fields, 4 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24, BC26-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 0254a3758ff5410559ede1b141ddeb5adcaa620e52ba9e5b47a78e5148ace471
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/HumanResources/Payables/DetailedEmployeeLedgerEntry.Table.al
    title: src/Layers/W1/BaseApp/HumanResources/Payables/DetailedEmployeeLedgerEntry.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-record-reimburse-employee-expenses
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/expense-management-preview/work-with-expenses-in-business-central
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5223
name: Detailed Employee Ledger Entry
namespace: Microsoft.HumanResources.Payables
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 30
  procedures: 7
  events: 2
  subscribers: 0
relations:
  out: 14
  referenced_by: 14
  pages: 3
  extended_by: 0
  event_subscribers: 2
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5223 "Detailed Employee Ledger Entry"

> Table 5223 "Detailed Employee Ledger Entry" in Base Application (Microsoft.HumanResources.Payables). 30 fields, 4 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24, BC26-29.

Base Application · Microsoft.HumanResources.Payables · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/HumanResources/Payables/DetailedEmployeeLedgerEntry.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 625 "Unapply Employee Entries"](../page/625.md) (1 Learn page), [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md) (1), [Page 5240 "Detailed Empl. Entries Preview"](../page/5240.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Detailed Employee Ledger Entry |
| DataClassification | CustomerContent |
| LookupPageId | Detailed Empl. Ledger Entries |
| DrillDownPageId | Detailed Empl. Ledger Entries |
| Permissions | TableData "Detailed Employee Ledger Entry" = m |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Entry No. | Integer | Specifies the entry number of the detailed employee ledger entry. |  |
| 2 | Employee Ledger Entry No. | Integer | Specifies the entry number of the employee ledger entry that the detailed employee ledger entry line was created for. | TableRelation [Table 5222 "Employee Ledger Entry"](../table/5222.md) (Employee Ledger Entry) |
| 3 | Entry Type | Enum "Detailed CV Ledger Entry Type" | Specifies the entry type of the detailed employee ledger entry. | enum [Enum 379 "Detailed CV Ledger Entry Type"](../enum/379.md) |
| 4 | Posting Date | Date | Specifies the posting date of the detailed employee ledger entry. |  |
| 5 | Document Type | Enum "Gen. Journal Document Type" | Specifies the document type of the detailed employee ledger entry. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 6 | Document No. | Code[20] | Specifies the document number of the transaction that created the entry. |  |
| 7 | Amount | Decimal | Specifies the amount of the detailed employee ledger entry. |  |
| 8 | Amount (LCY) | Decimal | Specifies the amount of the entry in LCY. <small>via [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md)</small> |  |
| 9 | Employee No. | Code[20] | Specifies the number of the employee to which the entry is posted. | TableRelation [Table 5200 "Employee"](../table/5200.md) |
| 10 | Currency Code | Code[10] | Specifies the code for the currency if the amount is in a foreign currency. | TableRelation [Table 4 "Currency"](../table/4.md) |
| 11 | User ID | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 12 | Source Code | Code[10] | Specifies the source code that specifies where the entry was created. | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code) |
| 13 | Transaction No. | Integer | — | TableRelation [Table 57 "G/L Transaction"](../table/57.md) (G/L Transaction) |
| 14 | Journal Batch Name | Code[10] | — |  |
| 15 | Reason Code | Code[10] | Specifies the reason code, a supplementary source code that enables you to trace the entry. | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 16 | Debit Amount | Decimal | Specifies the total of the ledger entries that represent debits. |  |
| 17 | Credit Amount | Decimal | Specifies the total of the ledger entries that represent credits. |  |
| 18 | Debit Amount (LCY) | Decimal | Specifies the total of the ledger entries that represent debits, expressed in LCY. <small>via [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md)</small> |  |
| 19 | Credit Amount (LCY) | Decimal | Specifies the total of the ledger entries that represent credits, expressed in the local currency. <small>via [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md)</small> |  |
| 21 | Initial Entry Global Dim. 1 | Code[20] | Specifies the Global Dimension 1 code of the initial employee ledger entry. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 22 | Initial Entry Global Dim. 2 | Code[20] | Specifies the Global Dimension 2 code of the initial employee ledger entry. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 35 | Initial Document Type | Enum "Gen. Journal Document Type" | Specifies the document type that the initial vendor ledger entry was created with. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 36 | Applied Empl. Ledger Entry No. | Integer | — |  |
| 37 | Unapplied | Boolean | Specifies whether the entry has been unapplied (undone) from the Unapply Employee Entries window by the entry number shown in the Unapplied by Entry No. field. |  |
| 38 | Unapplied by Entry No. | Integer | Specifies the number of the correcting entry, if the original entry has been unapplied (undone) from the Unapply Employee Entries window. | TableRelation [Table 5223 "Detailed Employee Ledger Entry"](../table/5223.md) (Detailed Employee Ledger Entry) |
| 42 | Application No. | Integer | — | not editable |
| 43 | Ledger Entry Amount | Boolean | — | not editable |
| 44 | Posting Group | Code[20] | Specifies the employee's market type to link business transactions to. | TableRelation [Table 5221 "Employee Posting Group"](../table/5221.md) (Employee Posting Group); not editable |
| 45 | Exch. Rate Adjmt. Reg. No. | Integer | — | TableRelation [Table 86 "Exch. Rate Adjmt. Reg."](../table/86.md) (Exch. Rate Adjmt. Reg.); not editable |
| 95 | G/L Register No. | Integer | — | TableRelation [Table 45 "G/L Register"](../table/45.md) (G/L Register); not editable |

## Keys

- Key1: Entry No. (clustered)
- Key2: Employee Ledger Entry No., Posting Date
- Key3: Transaction No., Employee No., Entry Type

## Events published

- `OnAfterUpdateDebitCredit(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; Correction: Boolean)` (integration)
- `OnSetZeroTransNoOnBeforeDetailedVendorLedgEntryModify(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry")` (integration)

## Trigger event subscribers

- OnAfterInsertEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnInsertDetailedEmployeeLedgerEntry
- OnAfterModifyEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnModifyDetailedEmployeeLedgerEntry

## Procedures

- `GetLastEntryNo(): Integer`
- `UpdateDebitCredit(Correction: Boolean)`
- `SetZeroTransNo(TransactionNo: Integer)`
- `GetUnrealizedGainLossAmount(EntryNo: Integer): Decimal`

Plus 1 local procedures.

## Triggers

OnInsert

## Relations

- drill-down page [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md)
- lookup page [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Initial Entry Global Dim. 1: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Initial Entry Global Dim. 2: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- G/L Register No.: TableRelation [Table 45 "G/L Register"](../table/45.md)
- Employee No.: TableRelation [Table 5200 "Employee"](../table/5200.md)
- Posting Group: TableRelation [Table 5221 "Employee Posting Group"](../table/5221.md)
- Employee Ledger Entry No.: TableRelation [Table 5222 "Employee Ledger Entry"](../table/5222.md)
- Unapplied by Entry No.: TableRelation [Table 5223 "Detailed Employee Ledger Entry"](../table/5223.md)
- Transaction No.: TableRelation [Table 57 "G/L Transaction"](../table/57.md)
- Exch. Rate Adjmt. Reg. No.: TableRelation [Table 86 "Exch. Rate Adjmt. Reg."](../table/86.md)

## Referenced by

14 fields in 4 objects relate to this table (TableRelation or CalcFormula).

- [Table 5222 "Employee Ledger Entry"](../table/5222.md): Amount, Amount (LCY), Credit Amount, Credit Amount (LCY), Debit Amount, Debit Amount (LCY), Original Amount, Original Amt. (LCY), Remaining Amount, Remaining Amt. (LCY)
- [Table 5200 "Employee"](../table/5200.md): Balance, Balance (LCY)
- [Table 5223 "Detailed Employee Ledger Entry"](../table/5223.md): Unapplied by Entry No.
- [Table 86 "Exch. Rate Adjmt. Reg."](../table/86.md): Adjusted Employees

## Pages and codeunits on this table

- [Page 5238 "Detailed Empl. Ledger Entries"](../page/5238.md) (source table)
- [Page 5240 "Detailed Empl. Entries Preview"](../page/5240.md) (source table)
- [Page 625 "Unapply Employee Entries"](../page/625.md) (source table)

## 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 703 "Find Record Management"](../codeunit/703.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26-29

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: "table", object_name: "Detailed Employee Ledger Entry")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
