---
id: object/table/380
type: object
title: Table 380 "Detailed Vendor Ledg. Entry"
summary: Table 380 "Detailed Vendor Ledg. Entry" in Base Application (Microsoft.Purchases.Payables). 40 fields, 4 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28-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: 1575388dfdfa25af6075417acaf5afe0e46564e9254e5b52326a6aab7c403129
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al
    title: src/Layers/W1/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/payables-manage-payables
    - https://learn.microsoft.com/dynamics365/business-central/payables-how-post-payments-refunds
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/manage-payables
    - topic/business-central/business-functionality/finance/manage-payables/make-payments
  localizations:
    - localization/au
    - localization/es
    - localization/fr
    - localization/it
    - localization/nz
    - localization/ru
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9089
object_type: table
object_id: 380
name: Detailed Vendor Ledg. Entry
namespace: Microsoft.Purchases.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"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries:
  - au
  - es
  - fr
  - it
  - nz
  - ru
ms_search_form_ids: []
counts:
  fields: 40
  procedures: 8
  events: 3
  subscribers: 0
relations:
  out: 19
  referenced_by: 46
  pages: 3
  extended_by: 0
  event_subscribers: 2
  calls: 1
  called_by: 0
  implements: 0
---

# Table 380 "Detailed Vendor Ledg. Entry"

> Table 380 "Detailed Vendor Ledg. Entry" in Base Application (Microsoft.Purchases.Payables). 40 fields, 4 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28-29.

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

Learn documents this table through its pages: [Page 574 "Detailed Vendor Ledg. Entries"](../page/574.md) (1 Learn page), [Page 624 "Unapply Vendor Entries"](../page/624.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Detailed Vendor Ledg. Entry |
| DataClassification | CustomerContent |
| Permissions | TableData "Detailed Vendor Ledg. 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 number of the entry, as assigned from the specified number series when the entry was created. |  |
| 2 | Vendor Ledger Entry No. | Integer | Specifies the entry number of the vendor ledger entry that the detailed vendor ledger entry line was created for. | TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md) (Vendor Ledger Entry) |
| 3 | Entry Type | Enum "Detailed CV Ledger Entry Type" | Specifies the entry type of the detailed vendor ledger entry. | enum [Enum 379 "Detailed CV Ledger Entry Type"](../enum/379.md) |
| 4 | Posting Date | Date | Specifies the posting date of the detailed vendor ledger entry. |  |
| 5 | Document Type | Enum "Gen. Journal Document Type" | Specifies the document type of the detailed vendor 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 vendor ledger entry. |  |
| 8 | Amount (LCY) | Decimal | Specifies the amount of the entry in LCY. <small>via [Page 129 "Detailed Vend. Entries Preview"](../page/129.md)</small> |  |
| 9 | Vendor No. | Code[20] | Specifies the number of the vendor account to which the entry is posted. | TableRelation [Table 23 "Vendor"](../table/23.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 | Specifies the transaction number that groups related G/L entries from the same posting. | 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 129 "Detailed Vend. Entries Preview"](../page/129.md)</small> |  |
| 19 | Credit Amount (LCY) | Decimal | Specifies the total of the ledger entries that represent credits, expressed in LCY. <small>via [Page 129 "Detailed Vend. Entries Preview"](../page/129.md)</small> |  |
| 20 | Initial Entry Due Date | Date | Specifies the date on which the initial entry is due for payment. |  |
| 21 | Initial Entry Global Dim. 1 | Code[20] | Specifies the Global Dimension 1 code of the initial vendor 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 vendor ledger entry. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 24 | Gen. Bus. Posting Group | Code[20] | — | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 25 | Gen. Prod. Posting Group | Code[20] | — | TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md) (Gen. Product Posting Group) |
| 29 | Use Tax | Boolean | — |  |
| 30 | VAT Bus. Posting Group | Code[20] | — | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 31 | VAT Prod. Posting Group | Code[20] | — | TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md) (VAT Product Posting Group) |
| 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 Vend. Ledger Entry No. | Integer | — |  |
| 37 | Unapplied | Boolean | Specifies whether the entry has been unapplied (undone) from the Unapply Vendor Entries window by the entry no. 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 Vendor Entries window. | TableRelation [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md) (Detailed Vendor Ledg. Entry) |
| 39 | Remaining Pmt. Disc. Possible | Decimal | — |  |
| 40 | Max. Payment Tolerance | Decimal | — |  |
| 41 | Tax Jurisdiction Code | Code[10] | — | TableRelation [Table 320 "Tax Jurisdiction"](../table/320.md) (Tax Jurisdiction); not editable |
| 42 | Application No. | Integer | — | not editable |
| 43 | Ledger Entry Amount | Boolean | — | not editable |
| 44 | Posting Group | Code[20] | Specifies the vendor's market type to link business transactions to. | TableRelation [Table 93 "Vendor Posting Group"](../table/93.md) (Vendor 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 | Specifies the G/L register number that groups related G/L entries from the same posting. | TableRelation [Table 45 "G/L Register"](../table/45.md) (G/L Register); not editable |
| 7000004 | Excluded from calculation | Boolean | — | not editable |

## Keys

- Key1: Entry No. (clustered)
- Key2: Vendor No., Currency Code, Excluded from calculation
- Key3: Vendor Ledger Entry No., Entry Type, Posting Date
- Key4: Vendor Ledger Entry No., Ledger Entry Amount, Posting Date, Excluded from calculation
- Key5: Initial Document Type, Entry Type, Vendor No., Currency Code, Initial Entry Global Dim. 1, Initial Entry Global Dim. 2, Posting Date
- Key6: Vendor No., Currency Code, Initial Entry Global Dim. 1, Initial Entry Global Dim. 2, Initial Entry Due Date, Posting Date, Excluded from calculation
- Key7: Document No., Document Type, Posting Date
- Key8: Applied Vend. Ledger Entry No., Entry Type
- Key9: Transaction No., Vendor No., Entry Type
- Key10: Application No., Vendor No., Entry Type
- Key11: Initial Document Type, Initial Entry Due Date
- Key12: Vendor No., Entry Type, Posting Date

## Events published

- `OnAfterUpdateDebitCredit(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; Correction: Boolean)` (integration)
- `OnBeforeSetLedgerEntryAmount(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; var IsHandled: Boolean)` (integration)
- `OnSetZeroTransNoOnBeforeDetailedVendorLedgEntryModify(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry")` (integration)

## Trigger event subscribers

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

## Procedures

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

Plus 1 local procedures.

## Triggers

OnInsert

## Relations

- drill-down page [Page 574 "Detailed Vendor Ledg. Entries"](../page/574.md)
- lookup page [Page 574 "Detailed Vendor Ledg. Entries"](../page/574.md)
- Vendor No.: TableRelation [Table 23 "Vendor"](../table/23.md)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Vendor Ledger Entry No.: TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Gen. Prod. Posting Group: TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md)
- Tax Jurisdiction Code: TableRelation [Table 320 "Tax Jurisdiction"](../table/320.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- VAT Prod. Posting Group: TableRelation [Table 324 "VAT Product Posting Group"](../table/324.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)
- Unapplied by Entry No.: TableRelation [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- G/L Register No.: TableRelation [Table 45 "G/L Register"](../table/45.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)
- Posting Group: TableRelation [Table 93 "Vendor Posting Group"](../table/93.md)

## Referenced by

46 fields in 9 objects relate to this table (TableRelation or CalcFormula).

- [Table 23 "Vendor"](../table/23.md): Balance, Balance (LCY), Balance Due, Balance Due (LCY), Cr. Memo Amounts, Cr. Memo Amounts (LCY), Credit Amount, Credit Amount (LCY), Debit Amount, Debit Amount (LCY), Fin. Charge Memo Amounts (LCY), Finance Charge Memo Amounts, Inv. Amounts (LCY), Invoice Amounts, Net Change, Net Change (LCY), Other Amounts, Other Amounts (LCY), Payments, Payments (LCY), Pmt. Disc. Tolerance (LCY), Pmt. Discounts (LCY), Pmt. Tolerance (LCY), Refunds, Refunds (LCY), Reminder Amounts, Reminder Amounts (LCY)
- [Table 25 "Vendor Ledger Entry"](../table/25.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 4 "Currency"](../table/4.md): Vendor Balance, Vendor Balance (LCY), Vendor Balance Due
- [Table 122 "Purch. Inv. Header"](../table/122.md): Remaining Amount
- [Table 124 "Purch. Cr. Memo Hdr."](../table/124.md): Remaining Amount
- [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md): Unapplied by Entry No.
- [Table 86 "Exch. Rate Adjmt. Reg."](../table/86.md): Adjusted Vendors
- [Table 9151 "My Vendor"](../table/9151.md): Balance (LCY)
- [Table 98 "General Ledger Setup"](../table/98.md): Vendor Balances Due

## Pages and codeunits on this table

- [Page 129 "Detailed Vend. Entries Preview"](../page/129.md) (source table)
- [Page 574 "Detailed Vendor Ledg. Entries"](../page/574.md) (source table)
- [Page 624 "Unapply Vendor Entries"](../page/624.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`)

## Recent changes

- 2026-07-20 [#9089 Merge-ES-Excluded-from-Calculation-to-W1](../../changes/bcapps/9089.md) (main, BC30, feature)

## Across versions

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

## Countries that replace it

[AU](../../localizations/au.md), [ES](../../localizations/es.md), [FR](../../localizations/fr.md), [IT](../../localizations/it.md), [NZ](../../localizations/nz.md), [RU](../../localizations/ru.md)

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 Vendor Ledg. Entry")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
