ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 1255 "Match Bank Payments" - OnAfterSetFinalText
Hello, I was wondering if i could get this event.
local procedure ShowMatchSummary(BankAccReconciliation: Record "Bank Acc. Reconciliation")
var
BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line";
MatchedCount: Integer;
TotalCount: Integer;
TextMatchCount: Integer;
FinalText: Text;
//>>>>>>>>>>>>>>
IsHandled: Boolean;
//<<<<<<<<<<<<<<
begin
BankAccReconciliationLine.SetRange("Statement Type", BankAccReconciliation."Statement Type"::"Payment Application");
BankAccReconciliationLine.SetRange("Bank Account No.", BankAccReconciliation."Bank Account No.");
BankAccReconciliationLine.SetRange("Statement No.", BankAccReconciliation."Statement No.");
TotalCount := BankAccReconciliationLine.Count();
BankAccReconciliationLine.SetFilter("Applied Entries", '>0');
MatchedCount := BankAccReconciliationLine.Count();
FinalText := StrSubstNo(MatchSummaryMsg, MatchedCount, TotalCount);
//>>>>>>>>>>>>>>>>>>>>>
OnAfterSetFinalText(BankAccReconciliation, FinalText, IsHandled);
If not IsHandled then
Message(FinalText);
//<<<<<<<<<<<<<<<<<<<<<
BankAccReconciliationLine.SetRange("Match Confidence", BankAccReconciliationLine."Match Confidence"::"High - Text-to-Account Mapping");
TextMatchCount := BankAccReconciliationLine.Count();
SendTraceTag('0000AIA', BankAccountRecCategoryLbl, Verbosity::Normal, StrSubstNo(BankAccountRecTotalAndMatchedLinesLbl, TotalCount, MatchedCount, TextMatchCount), DataClassification::SystemMetadata);
end;
[IntegrationEvent(false, false)]
local procedure OnAfterSetFinalText(var BankAccReconciliation: Record "Bank Acc. Reconciliation"; FinalText: Text; var IsHandled: Boolean)
begin
end;
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.