Steve-
I don't see the code you posted above when I click on the link to that KB. Here is the replacement code from the KB:
Replacement code
GenJnlLine2."System-Created Entry" := TRUE;
GenJnlLine2."Financial Void" := TRUE;
GenJnlLine2."Document No." := CheckLedgEntry."Document No.";
GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.
GenJnlLine2."Account Type" := GenJnlLine2."Account Type"::"Bank Account";
GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;
GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bank Account No.");
Replacement code
GenJnlLine2."System-Created Entry" := TRUE;
GenJnlLine2."Financial Void" := TRUE;
GenJnlLine2."Document No." := CheckLedgEntry."Document No.";
GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.
GenJnlLine2."Account Type" := CheckLedgEntry."Bal. Account Type";
GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;
GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bal. Account No.");