---
id: object/page/126
type: object
title: Page 126 "Cust. Ledg. Entries Preview"
summary: Page 126 "Cust. Ledg. Entries Preview" in Base Application (Microsoft.Sales.Receivables). 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - page
  - 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: b97bf3a7f35e9dc02792f73f9f025ba51100a9907c895b2ff93b22474a80f7d2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Receivables/CustLedgEntriesPreview.Page.al
    title: src/Layers/W1/BaseApp/Sales/Receivables/CustLedgEntriesPreview.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 126
name: Cust. Ledg. Entries Preview
namespace: Microsoft.Sales.Receivables
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 5
  events: 1
  subscribers: 0
  controls: 45
  actions: 2
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 126 "Cust. Ledg. Entries Preview"

> Page 126 "Cust. Ledg. Entries Preview" in Base Application (Microsoft.Sales.Receivables). 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Cust. Ledg. Entries Preview |
| SourceTable | Cust. Ledger Entry |
| PageType | List |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Control1 | Posting Date | [Posting Date](../table/21.md#fields) | Specifies the customer entry's posting date. <small>from the table field</small> |
|  | Document Type | [Document Type](../table/21.md#fields) | Specifies the document type that the customer entry belongs to. <small>from the table field</small> |
|  | Document No. | [Document No.](../table/21.md#fields) | Specifies the entry's document number. <small>from the table field</small> |
|  | Customer No. | [Customer No.](../table/21.md#fields) | Specifies the customer account number that the entry is linked to. <small>from the table field</small> |
|  | Message to Recipient | [Message to Recipient](../table/21.md#fields) | Specifies the message exported to the payment file when you use the Export Payments to File function in the Payment Journal window. <small>from the table field</small> |
|  | Description | [Description](../table/21.md#fields) | Specifies a description of the customer entry. <small>from the table field</small> |
|  | Global Dimension 1 Code | [Global Dimension 1 Code](../table/21.md#fields) | 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. <small>from the table field</small> |
|  | Global Dimension 2 Code | [Global Dimension 2 Code](../table/21.md#fields) | 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. <small>from the table field</small> |
|  | Customer Posting Group | [Customer Posting Group](../table/21.md#fields) | Specifies the customer's market type to link business transactions to. <small>from the table field</small> |
|  | IC Partner Code | [IC Partner Code](../table/21.md#fields) | Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction. <small>from the table field</small> |
|  | Salesperson Code | [Salesperson Code](../table/21.md#fields) | Specifies the code for the salesperson whom the entry is linked to. <small>from the table field</small> |
|  | Currency Code | [Currency Code](../table/21.md#fields) | Specifies the currency code for the amount on the line. <small>from the table field</small> |
|  | Original Amount | `OriginalAmountFCY` | Specifies the amount on the customer ledger entry before you post. |
|  | Original Amount LCY | `OriginalAmountLCY` | Specifies the original amount linked to the customer ledger entry, in local currency. |
|  | Amount | `AmountFCY` | Specifies the net amount of all the lines in the customer entry. |
|  | Amount LCY | `AmountLCY` | Specifies the amount linked to the customer ledger entry on the line, in local currency. |
|  | Debit Amount | [Debit Amount](../table/21.md#fields) | Specifies the total of the ledger entries that represent debits. <small>from the table field</small> |
|  | Debit Amount (LCY) | [Debit Amount (LCY)](../table/21.md#fields) | Specifies the total of the ledger entries that represent debits, expressed in LCY. <small>from the table field</small> |
|  | Credit Amount | [Credit Amount](../table/21.md#fields) | Specifies the total of the ledger entries that represent credits. <small>from the table field</small> |
|  | Credit Amount (LCY) | [Credit Amount (LCY)](../table/21.md#fields) | Specifies the total of the ledger entries that represent credits, expressed in LCY. <small>from the table field</small> |
|  | Remaining Amount | `RemainingAmountFCY` | Specifies the remaining amount on the customer ledger entry before you post. |
|  | Remaining Amount LCY | `RemainingAmountLCY` | Specifies the remaining amount linked to the customer ledger entry on the line, in local currency. |
|  | Bal. Account Type | [Bal. Account Type](../table/21.md#fields) | Specifies the type of account that a balancing entry is posted to, such as BANK for a cash account. <small>from the table field</small> |
|  | Bal. Account No. | [Bal. Account No.](../table/21.md#fields) | 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. <small>from the table field</small> |
|  | Due Date | [Due Date](../table/21.md#fields) | Specifies the due date on the entry. <small>from the table field</small> |
|  | Pmt. Discount Date | [Pmt. Discount Date](../table/21.md#fields) | Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. <small>from the table field</small> |
|  | Pmt. Disc. Tolerance Date | [Pmt. Disc. Tolerance Date](../table/21.md#fields) | Specifies the latest date the amount in the entry must be paid in order for a payment discount tolerance to be granted. <small>from the table field</small> |
|  | Original Pmt. Disc. Possible | [Original Pmt. Disc. Possible](../table/21.md#fields) | Specifies the discount that the customer can obtain if the entry is applied to before the payment discount date. <small>from the table field</small> |
|  | Remaining Pmt. Disc. Possible | [Remaining Pmt. Disc. Possible](../table/21.md#fields) | Specifies the remaining payment discount which can be received if the payment is made before the payment discount date. <small>from the table field</small> |
|  | Max. Payment Tolerance | [Max. Payment Tolerance](../table/21.md#fields) | Specifies the maximum tolerated amount the entry can differ from the amount on the invoice or credit memo. <small>from the table field</small> |
|  | Payment Method Code | [Payment Method Code](../table/21.md#fields) | Specifies how to make payment, such as with bank transfer, cash, or check. <small>from the table field</small> |
|  | Open | [Open](../table/21.md#fields) | Specifies whether the amount on the entry has been fully paid or there is still a remaining amount that must be applied to. <small>from the table field</small> |
|  | On Hold | [On Hold](../table/21.md#fields) | Specifies that the related entry represents an unpaid invoice for which either a payment suggestion, a reminder, or a finance charge memo exists. <small>from the table field</small> |
|  | Exported to Payment File | [Exported to Payment File](../table/21.md#fields) | Specifies that the entry was created as a result of exporting a payment journal line. <small>from the table field</small> |
|  | Source Code | [Source Code](../table/21.md#fields) | Specifies the source code that specifies where the entry was created. <small>from the table field</small> |
|  | Reason Code | [Reason Code](../table/21.md#fields) | Specifies the reason code, a supplementary source code that enables you to trace the entry. <small>from the table field</small> |
|  | Dimension Set ID | [Dimension Set ID](../table/21.md#fields) | Specifies a reference to a combination of dimension values. The actual values are stored in the Dimension Set Entry table. <small>from the table field</small> |
|  | External Document No. | [External Document No.](../table/21.md#fields) | Specifies a document number that refers to the customer's or vendor's numbering system. <small>from the table field</small> |
|  | Your Reference | [Your Reference](../table/21.md#fields) | Specifies the customer's reference. <small>from the table field</small> |
|  | Shortcut Dimension 3 Code | [Shortcut Dimension 3 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 3, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 4 Code | [Shortcut Dimension 4 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 4, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 5 Code | [Shortcut Dimension 5 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 5, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 6 Code | [Shortcut Dimension 6 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 6, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 7 Code | [Shortcut Dimension 7 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 7, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 8 Code | [Shortcut Dimension 8 Code](../table/21.md#fields) | Specifies the code for Shortcut Dimension 8, which is one of dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Entry | Dimensions | View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history. |  |
|  | Set Dimension Filter | Limit the entries according to the dimension filters that you specify. NOTE: If you use a high number of dimension combinations, this function may not work and can result in a message that the SQL server only supports a maximum of 2100 parameters. |  |

## Events published

- `OnAfterCalcAmounts(CustLedgerEntry: Record "Cust. Ledger Entry"; var TempDetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry" temporary; var AmountFCY: Decimal; var AmountLCY: Decimal; var RemainingAmountFCY: Decimal; var RemainingAmountLCY: Decimal; var OriginalAmountFCY: Decimal; var OriginalAmountLCY: Decimal)` (integration)

## Procedures

- `Set(var TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary; var TempDetailedCustLedgEntry2: Record "Detailed Cust. Ledg. Entry" temporary)`: Sets the preview data from temporary customer ledger entries and detailed entries.
- `CalcAmounts()`: Calculates the amounts for the current customer ledger entry from the detailed entries.

Plus 2 local procedures.

## Triggers

OnAfterGetRecord, OnOpenPage

## Relations

- source table [Table 21 "Cust. Ledger Entry"](../table/21.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: `SetDimVisibility → UseShortcutDims`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC28

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: "page", object_name: "Cust. Ledg. Entries Preview")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
