...
IF NOT PmtJnlManagement.Mod97Test(BankAcc."Bank Account No.") THEN
CheckPaymJnlLine.InsertErrorLog(STRSUBSTNO(Text005,BankAcc.FIELDCAPTION("Bank Account No."),
BankAcc."Bank Account No.",PmtJnlLine.FIELDCAPTION("Bank Account"),PmtJnlLine."Bank Account",
PmtJnlLine.TABLECAPTION,PmtJnlLine.FIELDCAPTION("Line No."),PmtJnlLine."Line No."));
...
...
IF NOT PmtJnlManagement.Mod97Test(BankAcc."Bank Account No.") THEN
CheckPaymJnlLine.InsertErrorLog(STRSUBSTNO(Text005,BankAcc.FIELDCAPTION("Bank Account No."),
BankAcc."Bank Account No.",PmtJnlLine.FIELDCAPTION("Bank Account"),PmtJnlLine."Bank Account",
PmtJnlLine.TABLECAPTION,PmtJnlLine.FIELDCAPTION("Line No."),PmtJnlLine."Line No."));
// Add the following line.
IF BankAcc."Bank Branch No." = '' THEN
CheckPaymJnlLine.InsertErrorLog(STRSUBSTNO(Text006,BankAcc."No."));
// End of the added lines.
...