Codeunit 103 "Cust. Entry-Edit"
Base Application · Microsoft.Sales.Receivables
Across versions
- BC23present
- BC242 procedures added, 1 procedures changed
- BC25-26unchanged
- BC271 events added
- BC28-30unchanged
Neighbourhood 19 connected objects and pages
Base Application · Microsoft.Sales.Receivables · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Cust. Ledger Entry |
| Permissions | TableData “Cust. Ledger Entry” = m, TableData “Detailed Cust. Ledg. Entry” = m, tabledata “Sales Invoice Header” = m |
Events published
OnBeforeCustLedgEntryModify(var CustLedgEntry: Record "Cust. Ledger Entry"; FromCustLedgEntry: Record "Cust. Ledger Entry")(integration): Raised before the customer ledger entry is modified.OnBeforeOnRun(var CustLedgerEntryRec: Record "Cust. Ledger Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var IsHandled: Boolean)(integration): Raised before the OnRun trigger executes to allow custom processing.OnRunOnAfterCustLedgEntryModify(var CustLedgerEntryRec: Record "Cust. Ledger Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry")(integration): Raised after the customer ledger entry has been modified.OnAfterLogFieldChanged(CurrCustLedgerEntry: Record "Cust. Ledger Entry"; NewCustLedgerEntry: Record "Cust. Ledger Entry"; var Changed: Boolean)(integration): Raised after determining if fields have changed to allow additional change tracking.OnBeforeUpdateSalesInvoiceHeader(var UpdateSalesInvoiceCustLedgerEntry: Record "Cust. Ledger Entry"; CalledFromSalesInvEdit: Boolean; var IsHandled: Boolean)+ BC27 (integration): Raised before updating the sales invoice header with customer ledger entry changes.
Procedures
SetOnHold(var OnHoldCustLedgEntry: Record "Cust. Ledger Entry"; NewOnHold: Code[3])Δ BC24: Sets the On Hold status of a customer ledger entry.SetCalledFromSalesInvoice(CalledFromSalesInvEditSet: Boolean)+ BC24: Sets a flag indicating whether the codeunit is called from a sales invoice edit operation.
Plus 2 local procedures.
Triggers
OnRun
Relations
- runs on Table 21 “Cust. Ledger Entry”
Called by
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 980 “Payment Registration Mgt.” (3 calls:
ClearApplicationFieldsOnCustLedgerEntry → (object),UpdateApplicationFieldsOnCustLedgerEntry → (object),UpdatePmtDiscountDateOnCustLedgerEntry → (object)) - Page 232 “Apply Customer Entries” (3 calls:
OnModifyRecord → (object),OnQueryClosePage → (object),SetApplyingCustledgEntryDirect → (object)) - Table 81 “Gen. Journal Line” (3 calls:
ClearCustVendApplnEntry → (object),RenumberAppliesToID → (object),SetApplyToAmount → (object)) - Codeunit 1409 “Sales Inv. Header - Edit” (2 calls:
UpdateCustLedgerEntry → (object),UpdateCustLedgerEntry → SetCalledFromSalesInvoice) - Codeunit 370 “Bank Acc. Reconciliation Post” (2 calls:
ApplyCustLedgEntry → (object),CustEntryEditNoCommit → (object)) - Page 5939 “Serv. Apply Customer Entries” (2 calls:
OnModifyRecord → (object),OnQueryClosePage → (object)) - Codeunit 108 “Net Cust/Vend Balances Mgt.” (1 call:
SetOnHold → SetOnHold) - Codeunit 1208 “Pmt Export Mgt Cust Ledg Entry” (1 call:
SetExportFlagOnCustLedgerEntries → (object)) - Codeunit 1250 “Match General Journal Lines” (1 call:
PrepareCustLedgerEntryForApplication → (object)) - Codeunit 1255 “Match Bank Payments” (1 call:
SetCustAppicationData → (object)) - Codeunit 1278 “Exp. User Feedback Gen. Jnl.” (1 call:
SetExportFlagOnAppliedCustLedgerEntry → (object)) - Codeunit 1408 “Sales Credit Memo Hdr. - Edit” (1 call:
UpdateCustLedgerEntry → (object)) - Codeunit 20111 “AMC Bank Exp. CT Feedback” (1 call:
SetExportFlagOnAppliedCustLedgerEntry → (object)) - Codeunit 226 “CustEntry-Apply Posted Entries” (1 call:
ApplyCustEntryFormEntry → (object)) - Codeunit 6620 “Copy Document Mgt.” (1 call:
UpdateCustLedgerEntry → (object)) - Page 25 “Customer Ledger Entries” (1 call:
OnModifyRecord → (object)) - Table 1294 “Applied Payment Entry” (1 call:
ClearCustApplicationData → (object)) - Table 21 “Cust. Ledger Entry” (1 call:
SetAmountToApply → (object))
Recent changes
- 2026-09-09 #11160 Ruleset hardening: promote three mechanical rules to Error (main, BC30, refactor)
Countries that replace it
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: "codeunit", object_name: "Cust. Entry-Edit"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.