ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 21 - Cust. Ledger Entry - RecalculateAmounts
Could you please create an Integration event in Table 21 Cust. Ledger Entry, in function RecalculateAmounts?
[External] RecalculateAmounts(FromCurrencyCode : Code[10];ToCurrencyCode : Code[10];PostingDate : Date)
IF ToCurrencyCode = FromCurrencyCode THEN
EXIT;
"Remaining Amount" :=
CurrExchRate.ExchangeAmount("Remaining Amount",FromCurrencyCode,ToCurrencyCode,PostingDate);
"Remaining Pmt. Disc. Possible" :=
CurrExchRate.ExchangeAmount("Remaining Pmt. Disc. Possible",FromCurrencyCode,ToCurrencyCode,PostingDate);
"Accepted Payment Tolerance" :=
CurrExchRate.ExchangeAmount("Accepted Payment Tolerance",FromCurrencyCode,ToCurrencyCode,PostingDate);
"Amount to Apply" :=
CurrExchRate.ExchangeAmount("Amount to Apply",FromCurrencyCode,ToCurrencyCode,PostingDate);
// >>>>
OnAfterRecalculateAmounts(Rec, FromCurrencyCode, ToCurrencyCode, PostingDate);
// <<<<
Event signature:
LOCAL [IntegrationEvent] OnAfterRecalculateAmounts(VAR Rec : Record "Cust. Ledger Entry";FromCurrencyCode : Code[10];ToCurrencyCode : Code[10];PostingDate : Date)
For our extension, we need to recalculate our own amount fields.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.