ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 1261 "Imp. SEPA CAMT Bank Rec. Lines" - OnRunOnbeforePostProcess & OnBeforePreProcess
Hello, I was wondering if I could get these two Events:
trigger OnRun()
var
DataExch: Record "Data Exch.";
RecRef: RecordRef;
ProcessDataExch: Codeunit "Process Data Exch.";
//>>>>>>>>>>>>>>>>>>>>
IsHandled: Boolean;
//<<<<<<<<<<<<<<<<<<<
begin
DataExch.Get("Data Exch. Entry No.");
RecRef.GetTable(Rec);
PreProcess(Rec);
ProcessDataExch.ProcessAllLinesColumnMapping(DataExch, RecRef);
//>>>>>>>>>>>>>>>>>>>>>>
OnRunOnbeforePostProcess(Rec, RecRef, IsHandled);
if not IsHandled then
PostProcess(Rec)
//<<<<<<<<<<<<<<<<<<<<<<
end;
[IntegrationEvent(false, false)]
local procedure OnRunOnbeforePostProcess(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; var RecRef: RecordRef; var IsHandled: Boolean)
begin
end;
local procedure PreProcess(BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
var
DataExch: Record "Data Exch.";
PrePostProcessXMLImport: Codeunit "Pre & Post Process XML Import";
//>>>>>>>>>>>>>>>
IsHandled: Boolean;
//<<<<<<<<<<<<<<<
begin
//>>>>>>>>>>>>>>>
IsHandled := false;
OnBeforePreProcess(BankAccReconciliationLine, IsHandled);
if IsHandled then
exit;
//<<<<<<<<<<<<<<<
DataExch.Get(BankAccReconciliationLine."Data Exch. Entry No.");
PrePostProcessXMLImport.PreProcessFile(DataExch, StatementIDTxt);
PrePostProcessXMLImport.PreProcessBankAccount(
DataExch, BankAccReconciliationLine."Bank Account No.", IBANTxt, BankIDTxt, CurrencyTxt);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforePreProcess(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; 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.