Skip to content

[NL][Report][11000022][ImportRabobankvvmutasc][ProcessClosingBalance] Add integration event OnAfterCalculateClosingBalance #30163

@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 11000022 "Import Rabobank vvmut.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 AutoReconcilation 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

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions