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;
}
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":