To implement this hotfix, you must have a developer license.
You do not have to have rights to the data stores unless you have to perform data repair.
function in the Gen. Jnl.-Post Batch codeunit (13) as follows:
...
// Not a recurring journal
GenJnlLine2.COPY(GenJnlLine);
GenJnlLine2.SETFILTER("Account No.",'<>%1','');
IF GenJnlLine2.FINDLAST THEN; // Remember the last line
GenJnlLine3.COPY(GenJnlLine);
// Delete the following lines.
IF GenJnlLine3.FINDSET(TRUE,FALSE) THEN
REPEAT
GenJnlLine3.DELETE;
UNTIL GenJnlLine3.NEXT = 0;
// End of the lines.
GenJnlLine3.RESET;
GenJnlLine3.SETRANGE("Journal Template Name","Journal Template Name");
GenJnlLine3.SETRANGE("Journal Batch Name","Journal Batch Name");
IF NOT GenJnlLine3.FINDLAST THEN
IF INCSTR("Journal Batch Name") <> '' THEN BEGIN
...
...
// Not a recurring journal
GenJnlLine2.COPY(GenJnlLine);
GenJnlLine2.SETFILTER("Account No.",'<>%1','');
IF GenJnlLine2.FINDLAST THEN; // Remember the last line
GenJnlLine3.COPY(GenJnlLine);
// Add the following line.
GenJnlLine3.DELETEALL;
GenJnlLine3.RESET;
GenJnlLine3.SETRANGE("Journal Template Name","Journal Template Name");
GenJnlLine3.SETRANGE("Journal Batch Name","Journal Batch Name");
IF NOT GenJnlLine3.FINDLAST THEN
IF INCSTR("Journal Batch Name") <> '' THEN BEGIN
...