---
title: "Table 21 Cust. Ledger Entry, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/points/
object: https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Table 21 Cust. Ledger Entry, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/points/

22 procedures and triggers with a step in src/Layers/W1/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al, in source order, read from the text, not from a run.

## Document No..OnLookup

[Line 85](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L85), trigger.

- [89](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L89) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `HyperlinkToDocument`

## Due Date.OnValidate

[Line 355](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L355), trigger.

- [367](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L367) calls [Codeunit 393 Reminder-Issue](https://jonas-paprotka.de/ref/codeunit/393-reminder-issue/) `ChangeDueDate`

## Max. Payment Tolerance.OnValidate

[Line 735](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L735), trigger.

- [739](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L739) raises `OnValidateMaxPaymentToleranceOnBeforeFieldError`

## Amount to Apply.OnValidate

[Line 790](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L790), trigger.

- [794](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L794) raises `OnValidateAmounttoApplyBeforeFieldError`
- [796](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L796) calls `AreOppositeSign`

## Message to Recipient.OnValidate

[Line 908](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L908), trigger.

- [913](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L913) raises `OnBeforeValidateMessagetoRecipient`, IsHandled

## Dimension Set ID.OnLookup

[Line 939](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L939), trigger.

- [941](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L941) calls `ShowDimensions`

## GetLastEntryNo

[Line 1159](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1159).

- [1163](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1163) calls [Codeunit 703 Find Record Management](https://jonas-paprotka.de/ref/codeunit/703-find-record-management/) `GetLastEntryIntFieldValue`

## ShowDoc

[Line 1170](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1170).

- [1181](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1181) raises `OnBeforeShowDoc`, IsHandled
- [1188](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1188) calls [Codeunit 700 Page Management](https://jonas-paprotka.de/ref/codeunit/700-page-management/) `PageRun`
- [1193](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1193) calls [Codeunit 700 Page Management](https://jonas-paprotka.de/ref/codeunit/700-page-management/) `PageRun`
- [1198](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1198) runs [Page 450 Issued Finance Charge Memo](https://jonas-paprotka.de/ref/page/450-issued-finance-charge-memo/)
- [1203](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1203) runs [Page 438 Issued Reminder](https://jonas-paprotka.de/ref/page/438-issued-reminder/)
- [1208](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1208) raises `OnAfterShowDoc`

## ShowPostedDocAttachment

[Line 1214](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1214).

- [1223](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1223) calls `OpenDocumentAttachmentDetails`
- [1228](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1228) calls `OpenDocumentAttachmentDetails`
- [1233](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1233) raises `OnAfterShowPostedDocAttachment`

## OpenDocumentAttachmentDetails

[Line 1236](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1236), local.

- [1242](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1242) calls [Page 1173 Document Attachment Details](https://jonas-paprotka.de/ref/page/1173-document-attachment-details/) `OpenForRecRef`

## HasPostedDocAttachment

[Line 1250](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1250).

- [1262](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1262) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `HasPostedDocumentAttachment`
- [1265](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1265) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `HasPostedDocumentAttachment`
- [1268](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1268) raises `OnAfterHasPostedDocAttachment`

## DrillDownOnEntries

[Line 1276](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1276).

- [1289](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1289) raises `OnBeforeDrillDownEntries`

## DrillDownOnOverdueEntries

[Line 1297](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1297).

- [1304](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1304) raises `OnBeforeDrillDownOnOverdueEntriesBeforeCode`, IsHandled
- [1317](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1317) raises `OnBeforeDrillDownOnOverdueEntries`

## ShowDimensions

[Line 1346](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1346).

- [1350](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1350) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `ShowDimensionSet`

## SetStyle

[Line 1357](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1357).

- [1361](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1361) raises `OnBeforeSetStyle`, IsHandled

## SetAmountToApply

[Line 1410](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1410).

- [1412](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1412) raises `OnBeforeSetAmountToApply`
- [1421](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1421) raises `OnSetAmountToApplyOnAfterCalcRemainingAmount`
- [1427](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1427) runs [Codeunit 103 Cust. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/)

## CopyFromGenJnlLine

[Line 1435](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1435).

- [1479](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1479) raises `OnAfterCopyCustLedgerEntryFromGenJnlLine`

## CopyFromCVLedgEntryBuffer

[Line 1486](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1486).

- [1496](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1496) raises `OnAfterCopyCustLedgerEntryFromCVLedgEntryBuffer`

## RecalculateAmounts

[Line 1505](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1505).

- [1511](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1511) raises `OnBeforeRecalculateAmounts`, IsHandled
- [1517](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1517) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1519](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1519) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1521](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1521) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1523](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1523) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1525](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1525) raises `OnAfterRecalculateAmounts`

## UpdateAmountsForApplication

[Line 1535](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1535).

- [1541](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1541) raises `OnBeforeUpdateAmountsForApplication`, IsHandled
- [1548](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1548) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1551](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1551) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1555](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1555) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1558](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1558) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [1562](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1562) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [1565](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1565) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [1569](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1569) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [1572](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1572) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [1576](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1576) raises `OnAfterUpdateAmountsForApplication`

## GetRemainingPmtDiscPossible

[Line 1584](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1584).

- [1588](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1588) raises `OnAfterGetRemainingPmtDiscPossible`

## AreOppositeSign

[Line 1591](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1591), local.

- [1598](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1598) calls [Codeunit 710 Math](https://jonas-paprotka.de/ref/codeunit/710-math/) `Sign`
- [1598](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/source/#L1598) calls [Codeunit 710 Math](https://jonas-paprotka.de/ref/codeunit/710-math/) `Sign`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
