Table of Contents

Table "Cust. Ledger Entry"

ID 21
Namespace: Microsoft.Sales.Receivables

Stores customer ledger entries representing all financial transactions posted to customer accounts, including invoices, payments, credit memos, and finance charges.

Properties

Name Value
Caption Cust. Ledger Entry
DrillDownPageID Page Microsoft.Sales.Receivables."Customer Ledger Entries"
LookupPageID Page Microsoft.Sales.Receivables."Customer Ledger Entries"
Permissions tabledata "Reminder/Fin. Charge Entry" = R
DataClassification CustomerContent

Fields

Name Type Description
"Entry No." Integer

Specifies the unique sequential number assigned to this customer ledger entry.

"Customer No." Code[20]

Specifies the customer account number associated with this ledger entry.

"Posting Date" Date

Specifies the date when the transaction was posted to the general ledger.

"Document Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"

Specifies the type of document that created this entry, such as Invoice, Credit Memo, Payment, or Reminder.

"Document No." Code[20]

Specifies the document number of the source document that generated this entry.

Description Text[100]

Specifies a text description of the transaction represented by this entry.

"Customer Name" Text[100]

Specifies the name of the customer associated with this ledger entry.

"Your Reference" Text[35]

Specifies the customer's own reference number for the transaction.

"Currency Code" Code[10]

Specifies the currency in which the transaction amount is expressed.

Amount Decimal

Contains the total transaction amount in the original currency, calculated from detailed ledger entries.

"Remaining Amount" Decimal

Contains the outstanding balance that has not yet been applied or paid, in the original currency.

"Original Amt. (LCY)" Decimal

Contains the original transaction amount in local currency when the entry was first created.

"Remaining Amt. (LCY)" Decimal

Contains the outstanding balance that has not yet been applied or paid, expressed in local currency.

"Amount (LCY)" Decimal

Contains the total transaction amount expressed in local currency, calculated from detailed ledger entries.

"Sales (LCY)" Decimal

Stores the total sales amount excluding VAT in local currency for statistical purposes.

"Profit (LCY)" Decimal

Stores the profit amount from the sales transaction in local currency.

"Inv. Discount (LCY)" Decimal

Stores the invoice discount amount granted to the customer in local currency.

"Sell-to Customer No." Code[20]

Specifies the customer who purchased the goods or services, which may differ from the bill-to customer.

"Customer Posting Group" Code[20]

Specifies the posting group that determines the general ledger accounts used for posting customer transactions.

"Global Dimension 1 Code" Code[20]

Specifies the first global dimension value used for analysis and reporting of this entry.

"Global Dimension 2 Code" Code[20]

Specifies the second global dimension value used for analysis and reporting of this entry.

"Salesperson Code" Code[20]

Specifies the salesperson responsible for the customer or the transaction.

"User ID" Code[50]

Specifies the user who posted this ledger entry for audit trail purposes.

"Source Code" Code[10]

Specifies the source code identifying the origin of the transaction, such as Sales Journal or Cash Receipt.

"On Hold" Code[3]

Indicates that this entry is excluded from payment suggestions, reminders, or finance charge calculations.

"Applies-to Doc. Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"

Specifies the document type of the entry to which this entry is applied.

"Applies-to Doc. No." Code[20]

Specifies the document number of the entry to which this entry is applied.

Open Boolean

Indicates whether this entry has an outstanding balance that has not been fully applied or paid.

"Due Date" Date

Specifies the date by which payment is expected from the customer.

"Pmt. Discount Date" Date

Specifies the last date on which the customer can pay to receive a payment discount.

"Original Pmt. Disc. Possible" Decimal

Stores the original payment discount amount that could be granted if paid before the discount date.

"Pmt. Disc. Given (LCY)" Decimal

Stores the payment discount amount that was actually granted to the customer in local currency.

"Orig. Pmt. Disc. Possible(LCY)" Decimal

Stores the original payment discount amount in local currency that could be granted if paid before the discount date.

Positive Boolean

Indicates whether this entry represents a debit (positive) or credit (negative) amount.

"Closed by Entry No." Integer

Specifies the entry number of the customer ledger entry that closed this entry through application.

"Closed at Date" Date

Specifies the date when this entry was closed through application of payments or credit memos.

"Closed by Amount" Decimal

Stores the amount in the original currency that was applied to close this entry.

"Applies-to ID" Code[50]

Specifies an identifier used to group entries that will be applied together in a single application operation.

"Journal Templ. Name" Code[10]

Specifies the journal template from which this entry was posted.

"Journal Batch Name" Code[10]

Specifies the journal batch from which this entry was posted.

"Reason Code" Code[10]

Specifies a supplementary code that provides additional context about the purpose of this transaction.

"Bal. Account Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type"

Specifies the type of balancing account used in the original transaction, such as G/L Account, Bank Account, or Vendor.

"Bal. Account No." Code[20]

Specifies the account number of the balancing account used in the original transaction.

"Transaction No." Integer

Specifies the transaction number that links all entries posted in the same posting operation.

"Closed by Amount (LCY)" Decimal

Stores the amount in local currency that was applied to close this entry.

"Debit Amount" Decimal

Contains the total debit amount in the original currency, calculated from detailed ledger entries.

"Credit Amount" Decimal

Contains the total credit amount in the original currency, calculated from detailed ledger entries.

"Debit Amount (LCY)" Decimal

Contains the total debit amount in local currency, calculated from detailed ledger entries.

"Credit Amount (LCY)" Decimal

Contains the total credit amount in local currency, calculated from detailed ledger entries.

"Document Date" Date

Specifies the date on the original source document, which may differ from the posting date.

"External Document No." Code[35]

Specifies an external document number from the customer's or trading partner's system.

"Calculate Interest" Boolean

Indicates whether finance charges should be calculated for this entry on overdue amounts.

"Closing Interest Calculated" Boolean

Indicates whether closing interest has already been calculated when the entry was closed.

"No. Series" Code[20]

Specifies the number series used to generate the document number for this entry.

"Closed by Currency Code" Code[10]

Specifies the currency code of the entry that was applied to close this customer ledger entry.

"Closed by Currency Amount" Decimal

Stores the amount in the closing entry's currency that was applied to close this entry.

"Adjusted Currency Factor" Decimal

Stores the currency exchange rate after exchange rate adjustments have been applied.

"Original Currency Factor" Decimal

Stores the original currency exchange rate used when the entry was created.

"Original Amount" Decimal

Contains the original transaction amount in the original currency when the entry was first created.

"Date Filter" Date

Specifies a date filter used to calculate flow fields for specific date ranges.

"Remaining Pmt. Disc. Possible" Decimal

Stores the remaining payment discount amount that can still be granted if the customer pays early.

"Pmt. Disc. Tolerance Date" Date

Specifies the final date on which the customer can pay and still receive the payment discount tolerance.

"Max. Payment Tolerance" Decimal

Specifies the maximum amount difference allowed when applying payments that is accepted as a tolerance.

"Last Issued Reminder Level" Integer

Stores the highest reminder level that has been issued to the customer for this entry.

"Accepted Payment Tolerance" Decimal

Stores the payment tolerance amount that has been accepted when applying this entry.

"Accepted Pmt. Disc. Tolerance" Boolean

Indicates whether a payment discount tolerance has been accepted when applying this entry.

"Pmt. Tolerance (LCY)" Decimal

Stores the payment tolerance amount in local currency that has been applied to this entry.

"Amount to Apply" Decimal

Specifies the amount that should be applied when performing entry application.

"IC Partner Code" Code[20]

Specifies the intercompany partner involved in this transaction for intercompany trade.

"Applying Entry" Boolean

Indicates whether this entry is the applying entry in a payment application operation.

Reversed Boolean

Indicates whether this entry has been reversed through a reversal transaction.

"Reversed by Entry No." Integer

Specifies the entry number of the correcting entry that reversed this original entry.

"Reversed Entry No." Integer

Specifies the entry number of the original entry that was reversed by this correcting entry.

Prepayment Boolean

Indicates whether this entry represents a prepayment received before goods or services are delivered.

"G/L Register No." Integer

Specifies the G/L register number that groups related G/L entries from the same posting.

"Payment Reference" Code[50]

Specifies the payment reference number used by banks to identify and track the payment.

"Payment Method Code" Code[10]

Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check.

"Applies-to Ext. Doc. No." Code[35]

Specifies the external document number of the entry to which this entry applies.

"Recipient Bank Account" Code[20]

Specifies the customer's bank account where refund payments should be transferred.

"Message to Recipient" Text[140]

Specifies the message text that will be sent to the recipient when the payment is exported.

"Exported to Payment File" Boolean

Indicates whether this entry has been exported to a payment file for electronic processing.

"Dimension Set ID" Integer

Specifies the combination of dimension values applied to this entry for analysis and reporting.

"Shortcut Dimension 3 Code" Code[20]

Contains the third shortcut dimension value for additional analysis and reporting capabilities.

"Shortcut Dimension 4 Code" Code[20]

Contains the fourth shortcut dimension value for additional analysis and reporting capabilities.

"Shortcut Dimension 5 Code" Code[20]

Contains the fifth shortcut dimension value for additional analysis and reporting capabilities.

"Shortcut Dimension 6 Code" Code[20]

Contains the sixth shortcut dimension value for additional analysis and reporting capabilities.

"Shortcut Dimension 7 Code" Code[20]

Contains the seventh shortcut dimension value for additional analysis and reporting capabilities.

"Shortcut Dimension 8 Code" Code[20]

Contains the eighth shortcut dimension value for additional analysis and reporting capabilities.

"Direct Debit Mandate ID" Code[35]

Specifies the SEPA direct debit mandate used to collect payments directly from the customer's bank account.

"Dispute Status" Code[10]

Specifies the dispute status when the customer has raised an issue regarding the invoice.

"Promised Pay Date" Date

Specifies the date on which the customer has committed to pay the outstanding balance.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

GetLastEntryNo

Gets the entry number of the last customer ledger entry in the table.

[InherentPermissions(TableData,21,r)]
procedure GetLastEntryNo(): Integer

Returns

Type Description
Integer

The entry number of the last customer ledger entry.

ShowDoc

Opens the appropriate posted document page based on the document type.

procedure ShowDoc(): Boolean

Returns

Type Description
Boolean

True if a document was found and displayed; otherwise, false.

ShowPostedDocAttachment

Opens the document attachment details page for the posted document associated with this entry.

procedure ShowPostedDocAttachment()

HasPostedDocAttachment

Checks whether the posted document associated with this entry has any attachments.

procedure HasPostedDocAttachment(): Boolean

Returns

Type Description
Boolean

True if the posted document has attachments; otherwise, false.

DrillDownOnEntries

Opens the Customer Ledger Entries page filtered by the specified detailed customer ledger entry filters.

procedure DrillDownOnEntries(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry")

Parameters

Name Type Description
DtldCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

The detailed customer ledger entry with filters to apply.

DrillDownOnOverdueEntries

Opens the Customer Ledger Entries page filtered to show only overdue entries.

procedure DrillDownOnOverdueEntries(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry")

Parameters

Name Type Description
DtldCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

The detailed customer ledger entry with filters to apply.

GetOriginalCurrencyFactor

Gets the original currency factor, returning 1 if not set.

procedure GetOriginalCurrencyFactor(): Decimal

Returns

Type Description
Decimal

The original currency factor or 1 if not set.

GetAdjustedCurrencyFactor

Gets the adjusted currency factor, returning 1 if not set.

procedure GetAdjustedCurrencyFactor(): Decimal

Returns

Type Description
Decimal

The adjusted currency factor or 1 if not set.

ShowDimensions

Opens the Dimension Set Entries page showing the dimensions for this entry.

procedure ShowDimensions()

SetStyle

Determines the visual style for displaying this entry based on its payment status.

procedure SetStyle(): Text

Returns

Type Description
Text

A style text for page rendering: 'Unfavorable' for overdue open entries, 'Attention' for entries closed after due date.

SetApplyToFilters

Sets filters on the record to show entries that can be applied based on the specified criteria.

procedure SetApplyToFilters(CustomerNo: Code[20]; ApplyDocType: Option; ApplyDocNo: Code[20]; ApplyAmount: Decimal)

Parameters

Name Type Description
CustomerNo Code[20]

The customer number to filter by.

ApplyDocType Option

The document type to filter by.

ApplyDocNo Code[20]

The document number to filter by.

ApplyAmount Decimal

The amount to filter by for determining positive/negative entries.

SetAmountToApply

Toggles the Amount to Apply field between the remaining amount and zero for the specified document.

procedure SetAmountToApply(AppliesToDocNo: Code[20]; CustomerNo: Code[20])

Parameters

Name Type Description
AppliesToDocNo Code[20]

The document number to set the amount to apply for.

CustomerNo Code[20]

The customer number of the entry.

CopyFromGenJnlLine

Copies field values from a general journal line to this customer ledger entry.

procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The general journal line to copy values from.

CopyFromCVLedgEntryBuffer

Copies field values from a CV ledger entry buffer to this customer ledger entry.

procedure CopyFromCVLedgEntryBuffer(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")

Parameters

Name Type Description
CVLedgerEntryBuffer Table Microsoft.Finance.ReceivablesPayables."CV Ledger Entry Buffer"

The CV ledger entry buffer to copy values from.

RecalculateAmounts

Recalculates amount fields from one currency to another using exchange rates at the specified posting date.

procedure RecalculateAmounts(FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)

Parameters

Name Type Description
FromCurrencyCode Code[10]

The source currency code.

ToCurrencyCode Code[10]

The target currency code.

PostingDate Date

The date to use for the exchange rate.

UpdateAmountsForApplication

Updates amount fields for application by converting to the application currency.

procedure UpdateAmountsForApplication(ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean)

Parameters

Name Type Description
ApplnDate Date

The application date for exchange rate lookup.

ApplnCurrencyCode Code[10]

The application currency code.

RoundAmounts Boolean

Specifies whether to use rounded exchange amounts.

UpdateMaxPaymentTolerance Boolean

Specifies whether to update the maximum payment tolerance.

GetRemainingPmtDiscPossible

Gets the remaining payment discount possible, allowing for customization through events.

procedure GetRemainingPmtDiscPossible(ReferenceDate: Date): Decimal

Parameters

Name Type Description
ReferenceDate Date

The reference date for calculating the payment discount.

Returns

Type Description
Decimal

The remaining payment discount amount possible.

Events

OnAfterCopyCustLedgerEntryFromGenJnlLine

Raised after copying customer ledger entry fields from a general journal line.

[IntegrationEvent(False,False)]
local procedure OnAfterCopyCustLedgerEntryFromGenJnlLine(var CustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry that was updated.

GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The general journal line that was copied from.

OnAfterCopyCustLedgerEntryFromCVLedgEntryBuffer

Raised after copying customer ledger entry fields from a CV ledger entry buffer.

[IntegrationEvent(False,False)]
local procedure OnAfterCopyCustLedgerEntryFromCVLedgEntryBuffer(var CustLedgerEntry: Record "Cust. Ledger Entry"; CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry that was updated.

CVLedgerEntryBuffer Table Microsoft.Finance.ReceivablesPayables."CV Ledger Entry Buffer"

The CV ledger entry buffer that was copied from.

OnAfterRecalculateAmounts

Raised after recalculating amounts from one currency to another.

[IntegrationEvent(False,False)]
local procedure OnAfterRecalculateAmounts(var CustLedgerEntry: Record "Cust. Ledger Entry"; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry with recalculated amounts.

FromCurrencyCode Code[10]

The source currency code.

ToCurrencyCode Code[10]

The target currency code.

PostingDate Date

The posting date used for exchange rates.

OnValidateAmounttoApplyBeforeFieldError

Raised before validating the Amount to Apply field to allow custom validation.

[IntegrationEvent(False,False)]
local procedure OnValidateAmounttoApplyBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry being validated.

OnAfterShowDoc

Raised after attempting to show the document associated with the entry.

[IntegrationEvent(False,False)]
local procedure OnAfterShowDoc(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

OnAfterShowPostedDocAttachment

Raised after showing the posted document attachment.

[IntegrationEvent(False,False)]
local procedure OnAfterShowPostedDocAttachment(var CustLedgerEntry: Record "Cust. Ledger Entry"; DocumentFound: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

DocumentFound Boolean

Indicates whether a document was found.

OnAfterHasPostedDocAttachment

Raised after checking whether the posted document has attachments.

[IntegrationEvent(False,False)]
local procedure OnAfterHasPostedDocAttachment(var CustLedgerEntry: Record "Cust. Ledger Entry"; var HasPostedDocumentAttachment: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

HasPostedDocumentAttachment Boolean

Returns whether attachments were found.

OnBeforeDrillDownEntries

Raised before drilling down on customer ledger entries.

[IntegrationEvent(False,False)]
local procedure OnBeforeDrillDownEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var DrillDownPageID: Integer)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry record.

DetailedCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

The detailed customer ledger entry with filters.

DrillDownPageID Integer

The page ID to use for drill-down.

OnBeforeDrillDownOnOverdueEntries

Raised before drilling down on overdue customer ledger entries.

[IntegrationEvent(False,False)]
local procedure OnBeforeDrillDownOnOverdueEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var DrillDownPageID: Integer)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry record.

DetailedCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

The detailed customer ledger entry with filters.

DrillDownPageID Integer

The page ID to use for drill-down.

OnBeforeSetAmountToApply

Raised before setting the amount to apply for a customer ledger entry.

[IntegrationEvent(False,False)]
local procedure OnBeforeSetAmountToApply(var CustLedgerEntry: Record "Cust. Ledger Entry"; AppliesToDocNo: Code[20]; CustomerNo: Code[20])

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

AppliesToDocNo Code[20]

The document number to apply to.

CustomerNo Code[20]

The customer number.

OnBeforeSetStyle

Raised before determining the visual style for the entry.

[IntegrationEvent(True,False)]
local procedure OnBeforeSetStyle(var Style: Text; var IsHandled: Boolean)

Parameters

Name Type Description
Style Text

The style text to set.

IsHandled Boolean

Set to true to skip default processing.

OnBeforeShowDoc

Raised before showing the document associated with the entry.

[IntegrationEvent(False,False)]
local procedure OnBeforeShowDoc(CustLedgerEntry: Record "Cust. Ledger Entry"; var IsPageOpened: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

IsPageOpened Boolean

Returns whether a page was opened.

IsHandled Boolean

Set to true to skip default processing.

OnBeforeValidateMessagetoRecipient

Raised before validating the Message to Recipient field.

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateMessagetoRecipient(var CustLedgerEntry: Record "Cust. Ledger Entry"; var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry being validated.

IsHandled Boolean

Set to true to skip default processing.

OnAfterUpdateAmountsForApplication

Raised after updating amounts for application.

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAmountsForApplication(var CustLedgerEntry: Record "Cust. Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry with updated amounts.

ApplnDate Date

The application date.

ApplnCurrencyCode Code[10]

The application currency code.

RoundAmounts Boolean

Indicates whether amounts were rounded.

UpdateMaxPaymentTolerance Boolean

Indicates whether max payment tolerance was updated.

OnAfterGetRemainingPmtDiscPossible

Raised after getting the remaining payment discount possible.

[IntegrationEvent(False,False)]
local procedure OnAfterGetRemainingPmtDiscPossible(CustLedgerEntry: Record "Cust. Ledger Entry"; ReferenceDate: Date; var RemainingPmtDiscPossible: Decimal)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

ReferenceDate Date

The reference date used.

RemainingPmtDiscPossible Decimal

The remaining payment discount amount.

OnBeforeDrillDownOnOverdueEntriesBeforeCode

Raised before drilling down on overdue entries to allow custom handling.

[IntegrationEvent(False,False)]
local procedure OnBeforeDrillDownOnOverdueEntriesBeforeCode(var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var IsHandled: Boolean)

Parameters

Name Type Description
DetailedCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

The detailed customer ledger entry with filters.

IsHandled Boolean

Set to true to skip default processing.

OnBeforeRecalculateAmounts

Raised before recalculating amounts from one currency to another.

[IntegrationEvent(False,False)]
local procedure OnBeforeRecalculateAmounts(var CustLedgerEntry: Record "Cust. Ledger Entry"; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; PostingDate: Date; var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

FromCurrencyCode Code[10]

The source currency code.

ToCurrencyCode Code[10]

The target currency code.

PostingDate Date

The posting date for exchange rates.

IsHandled Boolean

Set to true to skip default processing.

OnBeforeUpdateAmountsForApplication

Raised before updating amounts for application.

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAmountsForApplication(var CustLedgerEntry: Record "Cust. Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

ApplnDate Date

The application date.

ApplnCurrencyCode Code[10]

The application currency code.

RoundAmounts Boolean

Indicates whether to round amounts.

UpdateMaxPaymentTolerance Boolean

Indicates whether to update max payment tolerance.

IsHandled Boolean

Set to true to skip default processing.

OnSetAmountToApplyOnAfterCalcRemainingAmount

Raised after calculating the remaining amount when setting amount to apply.

[IntegrationEvent(False,False)]
local procedure OnSetAmountToApplyOnAfterCalcRemainingAmount(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry.

OnValidateMaxPaymentToleranceOnBeforeFieldError

Raised before validating the Max Payment Tolerance field to allow custom validation.

[IntegrationEvent(False,False)]
local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The customer ledger entry being validated.

See also