Skip to content

[Event Request] Codeunit 1255 "Match Bank Payments"."Code" #27938

@fridrichovsky

Description

@fridrichovsky

Describe the request

Please add new event

procedure "Code"(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; Overwrite: Boolean)
//----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:BEGIN
var
    IsHandled: Boolean;
//----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:END
begin
    if BankAccReconciliationLine.IsEmpty() then
        exit;

    MapLedgerEntriesToStatementLines(BankAccReconciliationLine, Overwrite, ApplyEntries);

    if ApplyEntries then begin
        ApplyLedgerEntriesToStatementLines(BankAccReconciliationLine, Overwrite);
        //----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:BEGIN
        IsHandled := false;
        OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere(BankAccReconciliationLine, IsHandled);
        if not IsHandled then
        //----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:END
            NotifyIfEntriesMatchedElsewhere(BankAccReconciliationLine);
    end;
end;

//----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:BEGIN
[IntegrationEvent(true, false)]
local procedure OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; var IsHandled: Boolean)
begin
end;
//----------------------------------------OnCodeOnBeforeNotifyIfEntriesMatchedElsewhere:END

Additional context

we need option how to skip NotifyIfEntriesMatchedElsewhere function.
Internal work item: AB#562600

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions