---
id: object/table/25
type: object
title: Table 25 "Vendor Ledger Entry"
summary: Table 25 "Vendor Ledger Entry" in Base Application (Microsoft.Purchases.Payables). 87 fields, 15 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC24-26, 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: 290ed3c61df7918254a6284e676c8728422ceec7cb18135e9a33f07a9a450551
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al
    title: src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-purchasing
    - https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/UnitedStates/set-up-use-irs1099-form
    - https://learn.microsoft.com/dynamics365/business-central/purchasing-analytics-overview
    - https://learn.microsoft.com/dynamics365/business-central/payables-how-apply-purchase-transactions-manually
    - 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
    - topic/business-central/business-functionality/local-functionality/united-states/tax
    - topic/business-central/business-functionality/purchasing/purchasing-analytics
  localizations:
    - localization/au
    - localization/ca
    - localization/ch
    - localization/es
    - localization/fi
    - localization/gb
    - localization/it
    - localization/mx
    - localization/nl
    - localization/no
    - localization/nz
    - localization/ru
    - localization/us
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10498
    - change/bcapps/9089
object_type: table
object_id: 25
name: Vendor Ledger 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"
  - "25"
  - "26"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries:
  - au
  - ca
  - ch
  - es
  - fi
  - gb
  - it
  - mx
  - nl
  - "no"
  - nz
  - ru
  - us
ms_search_form_ids: []
counts:
  fields: 87
  procedures: 33
  events: 16
  subscribers: 0
relations:
  out: 44
  referenced_by: 49
  pages: 7
  extended_by: 3
  event_subscribers: 10
  calls: 5
  called_by: 0
  implements: 0
---

# Table 25 "Vendor Ledger Entry"

> Table 25 "Vendor Ledger Entry" in Base Application (Microsoft.Purchases.Payables). 87 fields, 15 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC24-26, 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/VendorLedgerEntry.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 29 "Vendor Ledger Entries"](../page/29.md) (3 Learn pages), [Page 233 "Apply Vendor Entries"](../page/233.md) (2), [Page 62 "Applied Vendor Entries"](../page/62.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Vendor Ledger Entry |
| DataClassification | CustomerContent |

## 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. |  |
| 3 | Vendor No. | Code[20] | Specifies the number of the vendor account that the entry is linked to. | TableRelation [Table 23 "Vendor"](../table/23.md) |
| 4 | Posting Date | Date | Specifies the vendor entry's posting date. |  |
| 5 | Document Type | Enum "Gen. Journal Document Type" | Specifies the document type that the vendor entry belongs to. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 6 | Document No. | Code[20] | Specifies the vendor entry's document number. |  |
| 7 | Description | Text[100] | Specifies a description of the vendor entry. |  |
| 8 | Vendor Name | Text[100] | Specifies the name of the vendor account that the entry is linked to. |  |
| 11 | Currency Code | Code[10] | Specifies the currency code for the amount on the line. | TableRelation [Table 4 "Currency"](../table/4.md) |
| 13 | Amount | Decimal | Specifies the amount of the entry. | FlowField: sum("Detailed Vendor Ledg. Entry".Amount where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 14 | Remaining Amount | Decimal | Specifies the amount that remains to be applied to before the entry is totally applied to. | FlowField: sum("Detailed Vendor Ledg. Entry".Amount where("Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"), "Excluded from calculation" = const(false))); not editable |
| 15 | Original Amt. (LCY) | Decimal | Specifies the amount that the entry originally consisted of, in LCY. <small>via [Page 29 "Vendor Ledger Entries"](../page/29.md)</small> | FlowField: sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Vendor Ledger Entry No." = field("Entry No."), "Entry Type" = filter("Initial Entry"), "Posting Date" = field("Date Filter"))); not editable |
| 16 | Remaining Amt. (LCY) | Decimal | Specifies the amount that remains to be applied to before the entry is totally applied to. <small>via [Page 29 "Vendor Ledger Entries"](../page/29.md)</small> | FlowField: sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"), "Excluded from calculation" = const(false))); not editable |
| 17 | Amount (LCY) | Decimal | Specifies the amount of the entry in LCY. <small>via [Page 29 "Vendor Ledger Entries"](../page/29.md)</small> | FlowField: sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 18 | Purchase (LCY) | Decimal | — |  |
| 20 | Inv. Discount (LCY) | Decimal | — |  |
| 21 | Buy-from Vendor No. | Code[20] | — | TableRelation [Table 23 "Vendor"](../table/23.md) |
| 22 | Vendor 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) |
| 23 | Global Dimension 1 Code | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 24 | Global Dimension 2 Code | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 25 | Purchaser Code | Code[20] | Specifies which purchaser is assigned to the vendor. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) (Salesperson/Purchaser) |
| 27 | 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 |
| 28 | 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) |
| 33 | On Hold | Code[3] | Specifies that the related entry represents an unpaid invoice for which either a payment suggestion, a reminder, or a finance charge memo exists. |  |
| 34 | Applies-to Doc. Type | Enum "Gen. Journal Document Type" | — | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 35 | Applies-to Doc. No. | Code[20] | — |  |
| 36 | Open | Boolean | Specifies whether the amount on the entry has been fully paid or there is still a remaining amount that must be applied to. |  |
| 37 | Due Date | Date | Specifies the due date on the entry. |  |
| 38 | Pmt. Discount Date | Date | Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. |  |
| 39 | Original Pmt. Disc. Possible | Decimal | Specifies the discount that you can obtain if the entry is applied to before the payment discount date. | not editable |
| 40 | Pmt. Disc. Rcd.(LCY) | Decimal | — |  |
| 42 | Orig. Pmt. Disc. Possible(LCY) | Decimal | Org. Pmt. Disc. Possible (LCY) <small>caption</small> | not editable |
| 43 | Positive | Boolean | Specifies if the entry to be applied is positive. |  |
| 44 | Closed by Entry No. | Integer | — | TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md) (Vendor Ledger Entry) |
| 45 | Closed at Date | Date | Specifies the date at which the vendor ledger entry was closed. |  |
| 46 | Closed by Amount | Decimal | Specifies the amount that the entry was finally applied to (closed) with. |  |
| 47 | Applies-to ID | Code[50] | Specifies the ID of entries that will be applied to when you choose the Apply Entries action. |  |
| 48 | Journal Templ. Name | Code[10] | Journal Template Name <small>caption</small> |  |
| 49 | Journal Batch Name | Code[10] | — |  |
| 50 | 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) |
| 51 | Bal. Account Type | enum "Gen. Journal Account Type" | Specifies the type of account that a balancing entry is posted to, such as BANK for a cash account. | enum [Enum 81 "Gen. Journal Account Type"](../enum/81.md) |
| 52 | Bal. Account No. | Code[20] | Specifies the number of the general ledger, customer, vendor, or bank account that the balancing entry is posted to, such as a cash account for cash purchases. | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 18 "Customer"](../table/18.md), [Table 23 "Vendor"](../table/23.md) (if ("Bal. Account Type" = const("G/L Account")) "G/L Account" else if ("Bal. Account Type" = const(Customer)) Customer else if ("Bal. Account Type" = const(Vendor)) Vendor else if ("Bal. Account Type" = const("Bank Account")) "Bank Account" else if ("Bal. Account Type" = const("Fixed Asset")) "Fixed...) |
| 53 | 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) |
| 54 | Closed by Amount (LCY) | Decimal | — |  |
| 58 | Debit Amount | Decimal | Specifies the total of the ledger entries that represent debits. | FlowField: sum("Detailed Vendor Ledg. Entry"."Debit Amount" where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 59 | Credit Amount | Decimal | Specifies the total of the ledger entries that represent credits. | FlowField: sum("Detailed Vendor Ledg. Entry"."Credit Amount" where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 60 | Debit Amount (LCY) | Decimal | Specifies the total of the ledger entries that represent debits, expressed in LCY. <small>via [Page 29 "Vendor Ledger Entries"](../page/29.md)</small> | FlowField: sum("Detailed Vendor Ledg. Entry"."Debit Amount (LCY)" where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 61 | Credit Amount (LCY) | Decimal | Specifies the total of the ledger entries that represent credits, expressed in LCY. <small>via [Page 29 "Vendor Ledger Entries"](../page/29.md)</small> | FlowField: sum("Detailed Vendor Ledg. Entry"."Credit Amount (LCY)" where("Ledger Entry Amount" = const(true), "Vendor Ledger Entry No." = field("Entry No."), "Posting Date" = field("Date Filter"))); not editable |
| 62 | Document Date | Date | Specifies the vendor entry's document date. |  |
| 63 | External Document No. | Code[35] | Specifies a document number that refers to the customer's or vendor's numbering system. |  |
| 64 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 65 | Closed by Currency Code | Code[10] | Specifies the currency code of the entry that was applied to (and closed) this vendor ledger entry. | TableRelation [Table 4 "Currency"](../table/4.md) |
| 66 | Closed by Currency Amount | Decimal | Specifies the amount that was finally applied to (and closed) this vendor ledger entry. |  |
| 73 | Adjusted Currency Factor | Decimal | — |  |
| 74 | Original Currency Factor | Decimal | — |  |
| 75 | Original Amount | Decimal | Specifies the amount of the original entry. | FlowField: sum("Detailed Vendor Ledg. Entry".Amount where("Vendor Ledger Entry No." = field("Entry No."), "Entry Type" = filter("Initial Entry"), "Posting Date" = field("Date Filter"))); not editable |
| 76 | Date Filter | Date | — | FlowFilter |
| 77 | Remaining Pmt. Disc. Possible | Decimal | Specifies the remaining payment discount which can be received if the payment is made before the payment discount date. |  |
| 78 | Pmt. Disc. Tolerance Date | Date | Specifies the latest date the amount in the entry must be paid in order for payment discount tolerance to be granted. |  |
| 79 | Max. Payment Tolerance | Decimal | Specifies the maximum tolerated amount the entry can differ from the amount on the invoice or credit memo. |  |
| 81 | Accepted Payment Tolerance | Decimal | — |  |
| 82 | Accepted Pmt. Disc. Tolerance | Boolean | — |  |
| 83 | Pmt. Tolerance (LCY) | Decimal | — |  |
| 84 | Amount to Apply | Decimal | Specifies the amount to apply. |  |
| 85 | IC Partner Code | Code[20] | Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction. | TableRelation [Table 413 "IC Partner"](../table/413.md) (IC Partner) |
| 86 | Applying Entry | Boolean | — |  |
| 87 | Reversed | Boolean | Specifies if the entry has been part of a reverse transaction. |  |
| 88 | Reversed by Entry No. | Integer | Specifies the number of the correcting entry that replaced the original entry in the reverse transaction. | TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md) (Vendor Ledger Entry) |
| 89 | Reversed Entry No. | Integer | Specifies the number of the original entry that was undone by the reverse transaction. | TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md) (Vendor Ledger Entry) |
| 90 | Prepayment | Boolean | — |  |
| 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 |
| 170 | Creditor No. | Code[20] | Specifies the vendor who sent the purchase invoice. |  |
| 171 | Payment Reference | Code[50] | Specifies the payment of the purchase invoice. |  |
| 172 | Payment Method Code | Code[10] | Specifies how to make payment, such as with bank transfer, cash, or check. | TableRelation [Table 289 "Payment Method"](../table/289.md) (Payment Method) |
| 173 | Applies-to Ext. Doc. No. | Code[35] | — |  |
| 175 | Invoice Received Date | Date | Specifies the date when the vendor's invoice was received. |  |
| 288 | Recipient Bank Account | Code[20] | Specifies the bank account to transfer the amount to. | TableRelation [Table 288 "Vendor Bank Account"](../table/288.md) ("Vendor Bank Account".Code where("Vendor No." = field("Vendor No."))) |
| 289 | Message to Recipient | Text[140] | Specifies the message exported to the payment file when you use the Export Payments to File function in the Payment Journal window. |  |
| 290 | Exported to Payment File | Boolean | Specifies that the entry was created as a result of exporting a payment journal line. | not editable |
| 480 | Dimension Set ID | Integer | Specifies a reference to a combination of dimension values. The actual values are stored in the Dimension Set Entry table. | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 481 | Shortcut Dimension 3 Code | Code[20] | Specifies the code for Shortcut Dimension 3, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(3))); not editable |
| 482 | Shortcut Dimension 4 Code | Code[20] | Specifies the code for Shortcut Dimension 4, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(4))); not editable |
| 483 | Shortcut Dimension 5 Code | Code[20] | Specifies the code for Shortcut Dimension 5, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(5))); not editable |
| 484 | Shortcut Dimension 6 Code | Code[20] | Specifies the code for Shortcut Dimension 6, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(6))); not editable |
| 485 | Shortcut Dimension 7 Code | Code[20] | Specifies the code for Shortcut Dimension 7, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(7))); not editable |
| 486 | Shortcut Dimension 8 Code | Code[20] | Specifies the code for Shortcut Dimension 8, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(8))); not editable |
| 1000 | Remit-to Code | Code[20] | Specifies the address for the remit-to code. | TableRelation [Table 2224 "Remit Address"](../table/2224.md) ("Remit Address".Code where("Vendor No." = field("Vendor No."))) |
| 1340 | Dispute Status | Code[10] | Specifies if there is an ongoing dispute for this document. | TableRelation [Table 142 "Dispute Status"](../table/142.md) (Dispute Status) |

## Keys

- Key1: Entry No. (clustered)
- Key2: Vendor No., Currency Code
- Key3: Vendor No., Currency Code, Posting Date
- Key4: Document No.
- Key5: External Document No.
- Key6: Vendor No., Open, Positive, Due Date, Currency Code
- Key7: Open, Due Date
- Key9: Closed by Entry No.
- Key10: Transaction No.
- Key11: Vendor No., Global Dimension 1 Code, Global Dimension 2 Code, Posting Date, Currency Code
- Key15: Vendor No., Applies-to ID, Open, Positive, Due Date
- Key16: Vendor Posting Group
- Key17: Pmt. Discount Date
- Key18: Document Type, Due Date, Open
- Key25: Vendor No., Posting Date, Applies-to ID
- Key26: Applies-to ID
- PmtReconCandidates: Document Type, Open, Posting Date

## Events published

- `OnAfterCopyVendLedgerEntryFromGenJnlLine(var VendorLedgerEntry: Record "Vendor Ledger Entry"; GenJournalLine: Record "Gen. Journal Line")` (integration)
- `OnAfterCopyVendLedgerEntryFromCVLedgEntryBuffer(var VendorLedgerEntry: Record "Vendor Ledger Entry"; CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")` (integration)
- `OnAfterRecalculateAmounts(var VendorLedgerEntry: Record "Vendor Ledger Entry"; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)` (integration)
- `OnValidateMaxPaymentToleranceBeforeError(var VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration)
- `OnAfterShowDoc(var VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration)
- `OnAfterShowPostedDocAttachment(var VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration)
- `OnAfterHasPostedDocAttachment(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var HasPostedDocumentAttachment: Boolean)` (integration)
- `OnBeforeDrillDownEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; var DrillDownPageID: Integer)` (integration)
- `OnBeforeDrillDownOnOverdueEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; var DrillDownPageID: Integer)` (integration)
- `OnBeforeValidateMessagetoRecipient(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)` (integration)
- `OnBeforeShowDoc(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeSetStyle(var Result: Text; var IsHandled: Boolean)` (integration)
- `OnAfterUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean)` (integration)
- `OnAfterGetRemainingPmtDiscPossible(VendorLedgerEntry: Record "Vendor Ledger Entry"; ReferenceDate: Date; var RemainingPmtDiscPossible: Decimal)` (integration)
- `OnBeforeRecalculateAmounts(var VendorLedgerEntry: Record "Vendor Ledger Entry"; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean)` (integration)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) OnAfterDeleteVendorLedgerEntry, [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) OnAfterDeleteVendorLedgerEntry
- OnAfterInsertEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnInsertVendorLedgerEntry, [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) OnAfterInsertVendorLedgerEntry, [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) OnAfterInsertVendorLedgerEntry
- OnAfterModifyEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnModifyVendorLedgerEntry, [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) OnAfterModifyVendorLedgerEntry, [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) OnAfterModifyVendorLedgerEntry
- OnAfterRenameEvent: [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) OnAfterRenameVendorLedgerEntry, [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) OnAfterRenameVendorLedgerEntry

## Procedures

- `GetLastEntryNo(): Integer`
- `ShowDoc(): Boolean`
- `ShowPostedDocAttachment()`
- `HasPostedDocAttachment(): Boolean`
- `DrillDownOnEntries(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")`
- `DrillDownOnOverdueEntries(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")`
- `GetOriginalCurrencyFactor(): Decimal`
- `GetAdjustedCurrencyFactor(): Decimal`
- `ShowDimensions()`
- `SetStyle(): Text`
- `CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line")`
- `CopyFromCVLedgEntryBuffer(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")`
- `RecalculateAmounts(FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)`
- `UpdateAmountsForApplication(ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean)`
- `GetRemainingPmtDiscPossible(ReferenceDate: Date): Decimal`

Plus 2 local procedures.

## Relations

- drill-down page [Page 29 "Vendor Ledger Entries"](../page/29.md)
- lookup page [Page 29 "Vendor Ledger Entries"](../page/29.md)
- Purchaser Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Dispute Status: TableRelation [Table 142 "Dispute Status"](../table/142.md)
- Bal. Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Bal. Account No.: TableRelation [Table 18 "Customer"](../table/18.md) (conditional)
- Remit-to Code: TableRelation [Table 2224 "Remit Address"](../table/2224.md)
- Bal. Account No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Buy-from Vendor No.: TableRelation [Table 23 "Vendor"](../table/23.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)
- Closed by Entry No.: TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md)
- Reversed by Entry No.: TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md)
- Reversed Entry No.: TableRelation [Table 25 "Vendor Ledger Entry"](../table/25.md)
- Bal. Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Recipient Bank Account: TableRelation [Table 288 "Vendor Bank Account"](../table/288.md)
- Payment Method Code: TableRelation [Table 289 "Payment Method"](../table/289.md)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Global Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Global Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Amount: CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Amount (LCY): CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Credit Amount: CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Credit Amount (LCY): CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Debit Amount: CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Debit Amount (LCY): CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Original Amount: CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Original Amt. (LCY): CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Remaining Amount: CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Remaining Amt. (LCY): CalcFormula [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md)
- Closed by Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- IC Partner Code: TableRelation [Table 413 "IC Partner"](../table/413.md)
- G/L Register No.: TableRelation [Table 45 "G/L Register"](../table/45.md)
- Shortcut Dimension 3 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 4 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 5 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 6 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 7 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 8 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Transaction No.: TableRelation [Table 57 "G/L Transaction"](../table/57.md)
- Vendor Posting Group: TableRelation [Table 93 "Vendor Posting Group"](../table/93.md)

## Referenced by

49 fields in 26 objects relate to this table (TableRelation or CalcFormula).

- [Table 9046 "Account Payable Cue"](../table/9046.md): Outstanding Vendor Invoices, Overdue Purchase Documents, Purch. Documents Due Next Week, Purch. Invoices Due Next Week, Purchase Discounts Next Week, Purchase Documents Due Today, Purchase This Month
- [Table 9054 "Finance Cue"](../table/9054.md): Outstanding Vendor Invoices, Overdue Purchase Documents, Purch. Invoices Due Next Week, Purchase Discounts Next Week, Purchase Documents Due Today
- [Table 372 "Payment Buffer"](../table/372.md): Creditor No., Payment Method Code, Payment Reference, Vendor Ledg. Entry No.
- [Table 475 "Vendor Payment Buffer"](../table/475.md): Creditor No., Payment Method Code, Payment Reference, Vendor Ledg. Entry No.
- [Table 23 "Vendor"](../table/23.md): First Transaction Date, Inv. Discounts (LCY), Purchases (LCY)
- [Table 25 "Vendor Ledger Entry"](../table/25.md): Closed by Entry No., Reversed by Entry No., Reversed Entry No.
- [Table 122 "Purch. Inv. Header"](../table/122.md): Closed, Vendor Ledger Entry No.
- [Table 124 "Purch. Cr. Memo Hdr."](../table/124.md): Paid, Vendor Ledger Entry No.
- [Table 1313 "Activities Cue"](../table/1313.md): Outstanding Vendor Invoices, Purch. Invoices Due Next Week
- [Table 1206 "Credit Transfer Entry"](../table/1206.md): Applies-to Entry No.
- [Table 1293 "Payment Application Proposal"](../table/1293.md): Applies-to Entry No.
- [Table 1294 "Applied Payment Entry"](../table/1294.md): Applies-to Entry No.
- [Table 1692 "Posted Bank Deposit Line"](../table/1692.md): Entry No.
- [Table 179 "Reversal Entry"](../table/179.md): Entry No.
- [Table 317 "Payable Vendor Ledger Entry"](../table/317.md): Vendor Ledg. Entry No.
- [Table 37203 "Remit. Advice Buffer"](../table/37203.md): Vendor Ledger Entry No.
- [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md): Vendor Ledger Entry No.
- [Table 4 "Currency"](../table/4.md): Vendor Ledg. Entries in Filter
- [Table 5477 "Purch. Inv. Entity Aggregate"](../table/5477.md): Vendor Ledger Entry No.
- [Table 5496 "Purchase Order Entity Buffer"](../table/5496.md): Vendor Ledger Entry No.
- [Table 5508 "Purch. Cr. Memo Entity Buffer"](../table/5508.md): Vendor Ledger Entry No.
- [Table 57 "G/L Transaction"](../table/57.md): No. of Vendor Ledger Entries
- [Table 6220 "Sustainability Cue"](../table/6220.md): Purch. Invoices Due Next Week
- [Table 846 "Cash Flow Worksheet Line"](../table/846.md): Source No.
- [Table 847 "Cash Flow Forecast Entry"](../table/847.md): Source No.
- [Table 9060 "SB Owner Cue"](../table/9060.md): Purchase Documents Due Today

## Pages and codeunits on this table

- [Page 1159 "Purchase Documents"](../page/1159.md) (source table)
- [Page 1161 "Purchase Documents Due Today"](../page/1161.md) (source table)
- [Page 1162 "Purchase Invoice Due Next Week"](../page/1162.md) (source table)
- [Page 128 "Vend. Ledg. Entries Preview"](../page/128.md) (source table)
- [Page 233 "Apply Vendor Entries"](../page/233.md) (source table)
- [Page 29 "Vendor Ledger Entries"](../page/29.md) (source table)
- [Page 62 "Applied Vendor Entries"](../page/62.md) (source table)
- [Codeunit 113 "Vend. Entry-Edit"](../codeunit/113.md) (codeunit runs on it)
- [Codeunit 1212 "Pmt. Export Vend. Ledger Check"](../codeunit/1212.md) (codeunit runs on it)
- [Codeunit 227 "VendEntry-Apply Posted Entries"](../codeunit/227.md) (codeunit runs on it)

## Extended by

- [Table extension 6792 "Withholding Vend Led Entry Ext"](../tableextension/6792.md)
- [Table extension 681 "Paym. Prac. Vend. Ledg. Entry"](../tableextension/681.md)
- [Table extension 8004 "Vendor Ledger Entry"](../tableextension/8004.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 408 "DimensionManagement"](../codeunit/408.md) (1 call: `ShowDimensions → ShowDimensionSet`)
- [Codeunit 703 "Find Record Management"](../codeunit/703.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Codeunit 710 "Math"](../codeunit/710.md) (1 call: `AreOppositeSign → Sign`)
- [Page 138 "Posted Purchase Invoice"](../page/138.md) (1 call: `ShowDoc → (object)`)
- [Page 140 "Posted Purchase Credit Memo"](../page/140.md) (1 call: `ShowDoc → (object)`)

## Recent changes

- 2026-08-28 [#10498 [Pmt. Recon. Journal] Optimize opening of the Payment Application screen](../../changes/bcapps/10498.md) (main, BC30, performance)
- 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-26, BC28-29

## Countries that replace it

[AU](../../localizations/au.md), [CA](../../localizations/ca.md), [CH](../../localizations/ch.md), [ES](../../localizations/es.md), [FI](../../localizations/fi.md), [GB](../../localizations/gb.md), [IT](../../localizations/it.md), [MX](../../localizations/mx.md), [NL](../../localizations/nl.md), [NO](../../localizations/no.md), [NZ](../../localizations/nz.md), [RU](../../localizations/ru.md), [US](../../localizations/us.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: "Vendor Ledger Entry")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
