Skip to content

[NL][Report][11000021][ImportRabobankmutasc][ProcessClosingBalance] Add integration event OnAfterCalculateClosingBalance #30162

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

Standard report calculates the "Closing Balance" as "Opening Balance" + TotalNetChange, but the Rabobank .asc format reports net changes with the opposite sign convention. In 4PS Construct we need to override the result to "Opening Balance" - TotalNetChange, correcting for this sign difference specific to Rabobank's file format.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnAfterCalculateClosingBalance' to be added to procedure ProcessClosingBalance of report 11000021 "Import Rabobank mut.asc":

    local procedure ProcessClosingBalance()
    var
        CBGStatementReconciliation: Codeunit "CBG Statement Reconciliation";
    begin
        CBGStatement."Closing Balance" := CBGStatement."Opening Balance" + TotalNetChange;
        OnAfterCalculateClosingBalance(CBGStatement, TotalNetChange); //new
        CBGStatement.Modify(true);

        if AutoReconciliation then begin
            CBGStatementReconciliation.SetHideMessages(true);
            CBGStatementReconciliation.MatchCBGStatement(CBGStatement);
        end;
    end;
    [IntegrationEvent(false, false)]
    local procedure OnAfterCalculateClosingBalance(var CBGStatement: Record "CBG Statement"; TotalNetChange: Decimal)
    begin
        //new
    end;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions