---
id: object/table/382
type: object
title: Table 382 "CV Ledger Entry Buffer"
summary: Table 382 "CV Ledger Entry Buffer" in Base Application (Microsoft.Finance.ReceivablesPayables). 70 fields, 7 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 5edb1a292eb00a627ba9aad644c3fff33d0c6912d7f798cae09c148dde3f6a0e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al
    title: src/Layers/W1/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/be
    - localization/es
    - localization/it
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 382
name: CV Ledger Entry Buffer
namespace: Microsoft.Finance.ReceivablesPayables
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries:
  - be
  - es
  - it
  - ru
ms_search_form_ids: []
counts:
  fields: 70
  procedures: 14
  events: 7
  subscribers: 0
relations:
  out: 17
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 382 "CV Ledger Entry Buffer"

> Table 382 "CV Ledger Entry Buffer" in Base Application (Microsoft.Finance.ReceivablesPayables). 70 fields, 7 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.

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

## Properties

| Property | Value |
|---|---|
| Caption | CV Ledger Entry Buffer |
| 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 | — | DataClassification SystemMetadata |
| 3 | CV No. | Code[20] | — | TableRelation [Table 18 "Customer"](../table/18.md); DataClassification SystemMetadata |
| 4 | Posting Date | Date | — | DataClassification SystemMetadata |
| 5 | Document Type | Enum "Gen. Journal Document Type" | — | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md); DataClassification SystemMetadata |
| 6 | Document No. | Code[20] | — | DataClassification SystemMetadata |
| 7 | Description | Text[100] | — | DataClassification SystemMetadata |
| 10 | Your Reference | Text[35] | — | DataClassification SystemMetadata |
| 11 | Currency Code | Code[10] | — | TableRelation [Table 4 "Currency"](../table/4.md); DataClassification SystemMetadata |
| 13 | Amount | Decimal | — | DataClassification SystemMetadata |
| 14 | Remaining Amount | Decimal | — | DataClassification SystemMetadata |
| 15 | Original Amt. (LCY) | Decimal | — | DataClassification SystemMetadata |
| 16 | Remaining Amt. (LCY) | Decimal | — | DataClassification SystemMetadata |
| 17 | Amount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 18 | Sales/Purchase (LCY) | Decimal | — | DataClassification SystemMetadata |
| 19 | Profit (LCY) | Decimal | — | DataClassification SystemMetadata |
| 20 | Inv. Discount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 21 | Bill-to/Pay-to CV No. | Code[20] | — | TableRelation [Table 18 "Customer"](../table/18.md); DataClassification SystemMetadata |
| 22 | CV Posting Group | Code[20] | — | TableRelation [Table 92 "Customer Posting Group"](../table/92.md) (Customer Posting Group); DataClassification SystemMetadata |
| 23 | Global Dimension 1 Code | Code[20] | — | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))); DataClassification SystemMetadata |
| 24 | Global Dimension 2 Code | Code[20] | — | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))); DataClassification SystemMetadata |
| 25 | Salesperson Code | Code[20] | — | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) (Salesperson/Purchaser); DataClassification SystemMetadata |
| 27 | User ID | Code[50] | — | TableRelation User."User Name"; DataClassification SystemMetadata |
| 28 | Source Code | Code[10] | — | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code); DataClassification SystemMetadata |
| 33 | On Hold | Code[3] | — | DataClassification SystemMetadata |
| 34 | Applies-to Doc. Type | Enum "Gen. Journal Document Type" | — | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md); DataClassification SystemMetadata |
| 35 | Applies-to Doc. No. | Code[20] | — | DataClassification SystemMetadata |
| 36 | Open | Boolean | — | DataClassification SystemMetadata |
| 37 | Due Date | Date | — | DataClassification SystemMetadata |
| 38 | Pmt. Discount Date | Date | — | DataClassification SystemMetadata |
| 39 | Original Pmt. Disc. Possible | Decimal | — | DataClassification SystemMetadata |
| 40 | Pmt. Disc. Given (LCY) | Decimal | — | DataClassification SystemMetadata |
| 42 | Orig. Pmt. Disc. Possible(LCY) | Decimal | Orig. Pmt. Disc. Possible (LCY) <small>caption</small> | DataClassification SystemMetadata |
| 43 | Positive | Boolean | — | DataClassification SystemMetadata |
| 44 | Closed by Entry No. | Integer | — | TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md) (Cust. Ledger Entry); DataClassification SystemMetadata |
| 45 | Closed at Date | Date | — | DataClassification SystemMetadata |
| 46 | Closed by Amount | Decimal | — | DataClassification SystemMetadata |
| 47 | Applies-to ID | Code[50] | — | DataClassification SystemMetadata |
| 48 | Journal Templ. Name | Code[10] | Journal Template Name <small>caption</small> | DataClassification SystemMetadata |
| 49 | Journal Batch Name | Code[10] | — | DataClassification SystemMetadata |
| 50 | Reason Code | Code[10] | — | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code); DataClassification SystemMetadata |
| 51 | Bal. Account Type | enum "Gen. Journal Account Type" | — | enum [Enum 81 "Gen. Journal Account Type"](../enum/81.md); DataClassification SystemMetadata |
| 52 | Bal. Account No. | Code[20] | — | 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...); DataClassification SystemMetadata |
| 53 | Transaction No. | Integer | — | DataClassification SystemMetadata |
| 54 | Closed by Amount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 58 | Debit Amount | Decimal | — | DataClassification SystemMetadata |
| 59 | Credit Amount | Decimal | — | DataClassification SystemMetadata |
| 60 | Debit Amount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 61 | Credit Amount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 62 | Document Date | Date | — | DataClassification SystemMetadata |
| 63 | External Document No. | Code[35] | — | DataClassification SystemMetadata |
| 64 | Calculate Interest | Boolean | — | DataClassification SystemMetadata |
| 65 | Closing Interest Calculated | Boolean | — | DataClassification SystemMetadata |
| 66 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series); DataClassification SystemMetadata |
| 67 | Closed by Currency Code | Code[10] | — | TableRelation [Table 4 "Currency"](../table/4.md); DataClassification SystemMetadata |
| 68 | Closed by Currency Amount | Decimal | — | DataClassification SystemMetadata |
| 70 | Rounding Currency | Code[10] | — | DataClassification SystemMetadata |
| 71 | Rounding Amount | Decimal | — | DataClassification SystemMetadata |
| 72 | Rounding Amount (LCY) | Decimal | — | DataClassification SystemMetadata |
| 73 | Adjusted Currency Factor | Decimal | — | DataClassification SystemMetadata |
| 74 | Original Currency Factor | Decimal | — | DataClassification SystemMetadata |
| 75 | Original Amount | Decimal | — | DataClassification SystemMetadata |
| 77 | Remaining Pmt. Disc. Possible | Decimal | — | DataClassification SystemMetadata |
| 78 | Pmt. Disc. Tolerance Date | Date | — | DataClassification SystemMetadata |
| 79 | Max. Payment Tolerance | Decimal | — | DataClassification SystemMetadata |
| 81 | Accepted Payment Tolerance | Decimal | — | DataClassification SystemMetadata |
| 82 | Accepted Pmt. Disc. Tolerance | Boolean | — | DataClassification SystemMetadata |
| 83 | Pmt. Tolerance (LCY) | Decimal | — | DataClassification SystemMetadata |
| 84 | Amount to Apply | Decimal | — | DataClassification SystemMetadata |
| 90 | Prepayment | Boolean | — | DataClassification SystemMetadata |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable; DataClassification SystemMetadata |

## Keys

- Key1: Entry No. (clustered)

## Events published

- `OnAfterCopyFromCustLedgerEntry(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; CustLedgerEntry: Record "Cust. Ledger Entry")` (integration): Integration event raised after copying data from a customer ledger entry. Enables customization of the copy process for customer-specific requirements.
- `OnAfterCopyFromVendLedgerEntry(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration): Integration event raised after copying data from a vendor ledger entry. Enables customization of the copy process for vendor-specific requirements.
- `OnAfterCopyFromEmplLedgerEntry(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; EmployeeLedgerEntry: Record "Employee Ledger Entry")` (integration): Integration event raised after copying data from an employee ledger entry. Enables customization of the copy process for employee-specific requirements.
- `OnAfterSetClosedFields(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")` (integration): Integration event raised after setting closed-related fields in the buffer. Enables custom processing when ledger entries are marked as closed.
- `OnAfterGetPmtDiscountDate(CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; ReferenceDate: Date; var PmtDiscountDate: Date)` (integration): Integration event raised after calculating payment discount date. Enables customization of payment discount date calculation logic.
- `OnAfterGetRemainingPmtDiscPossible(CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; ReferenceDate: Date; var RemainingPmtDiscPossible: Decimal)` (integration): Integration event raised after getting remaining payment discount possible. Enables customization of payment discount calculations based on specific business rules.
- `OnAfterRecalculateAmounts(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)` (integration): Integration event raised after recalculating amounts in currency conversion. Enables custom processing when amounts are converted between currencies.

## Procedures

- `CopyFromCustLedgEntry(CustLedgEntry: Record "Cust. Ledger Entry")`: Copies data from a customer ledger entry into the buffer table. Transfers all matching fields and calculates remaining amounts.
- `CopyFromVendLedgEntry(VendLedgEntry: Record "Vendor Ledger Entry")`: Copies data from a vendor ledger entry into the buffer table. Maps vendor-specific fields to the corresponding customer/vendor buffer fields.
- `CopyFromEmplLedgEntry(EmplLedgEntry: Record "Employee Ledger Entry")`: Copies data from an employee ledger entry into the buffer table. Maps employee-specific fields to the corresponding customer/vendor buffer fields.
- `RecalculateAmounts(FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)`: Recalculates amounts when converting between different currencies. Updates all currency-related fields using exchange rates from the specified posting date.
- `SetClosedFields(EntryNo: Integer; PostingDate: Date; NewAmount: Decimal; AmountLCY: Decimal; CurrencyCode: Code[10]; CurrencyAmount: Decimal)`: Sets the closed fields for a ledger entry buffer with closing information.
- `GetPmtDiscountDate(ReferenceDate: Date): Date`: Gets the payment discount date relative to a reference date.
- `GetRemainingPmtDiscPossible(ReferenceDate: Date): Decimal`: Gets the remaining payment discount possible for the entry based on a reference date.

## Relations

- Salesperson Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.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)
- Bill-to/Pay-to CV No.: TableRelation [Table 18 "Customer"](../table/18.md)
- CV No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Closed by Entry No.: TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md)
- Bal. Account No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Bal. Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- 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)
- Closed by Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- CV Posting Group: TableRelation [Table 92 "Customer Posting Group"](../table/92.md)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27-28

## Countries that replace it

[BE](../../localizations/be.md), [ES](../../localizations/es.md), [IT](../../localizations/it.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). 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: "CV Ledger Entry Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
