Why do you need this change?
If CODA files contain a new balance record that contains a foreign bank account number, that does not (entirely) match the bank account no. of the bank account, we would like to interfere.
Example
BC compares the (stripped version of the) Bank Account No. from the Bank Account (FR7630003036040002000848697) against the Bank Account No. from the CODA statement (FR76 3000 3036 0400 0200 0848 697). As these don't match (because of prefix, spaces, ...) the import fails.
Solution
Add a fix to ensure the bank account numbers are stripped (7630003036040002000848697) before comparing, allowing the import to succeed.
Describe the request
Similar to the CheckOldBalance and OnBeforeCheckOldBalance publisher, we would like to get the same support for CheckNewBalance with a new OnBeforeCheckNewBalance publisher
procedure CheckNewBalance(var CodedBankStmtSrcLine: Record "CODA Statement Source Line"; AccountType2: Text[1]): Boolean
var
IBANSrcLine: Text;
BankAccountNo: Text[34];
IBANNumber: Text[34];
begin
OnBeforeCheckNewBalance(CodedBankStmtSrcLine, AccountType2, OK, IsHandled);
if IsHandled then
exit(OK);
CodBankStmtSrcLine := CodedBankStmtSrcLine;
AccountType := AccountType2;
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckNewBalance(var CODAStatementSourceLine: Record "CODA Statement Source Line"; AccountType2: Text[1]; var OK: Boolean; var IsHandled: Boolean)
begin
end;
Internal work item: AB#599975
Why do you need this change?
If CODA files contain a new balance record that contains a foreign bank account number, that does not (entirely) match the bank account no. of the bank account, we would like to interfere.
Example
BC compares the (stripped version of the) Bank Account No. from the Bank Account (FR7630003036040002000848697) against the Bank Account No. from the CODA statement (FR76 3000 3036 0400 0200 0848 697). As these don't match (because of prefix, spaces, ...) the import fails.
Solution
Add a fix to ensure the bank account numbers are stripped (7630003036040002000848697) before comparing, allowing the import to succeed.
Describe the request
Similar to the CheckOldBalance and OnBeforeCheckOldBalance publisher, we would like to get the same support for CheckNewBalance with a new OnBeforeCheckNewBalance publisher
Internal work item: AB#599975