Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fridrichovsky opened this issue Jan 13, 2025 · 0 comments
Open

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

fridrichovsky opened this issue Jan 13, 2025 · 0 comments
Labels
event-request Request for adding an event Finance GitHub request for Finance area

Comments

@fridrichovsky
Copy link
Contributor

fridrichovsky commented Jan 13, 2025

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

@JesperSchulz JesperSchulz added event-request Request for adding an event Finance GitHub request for Finance area labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event Finance GitHub request for Finance area
Projects
None yet
Development

No branches or pull requests

2 participants