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.
To resolve this problem, change the code of the Global Variables in the Gen. Jnl.-Post codeunit (231) as follows:
...
Text004@1004 : TextConst 'ENU=The journal lines were successfully posted. You are now in the %1 journal.';
GenJnlTemplate@1005 : Record 80;
GenJnlLine@1006 : Record 81;
GenJnlPostBatch@1007 : Codeunit 13;
TempJnlBatchName@1008 : Code[10];
// Delete the following lines.
LOCAL PROCEDURE Code@1();
BEGIN
WITH GenJnlLine DO BEGIN
GenJnlTemplate.GET("Journal Template Name");
// End of the lines.
GenJnlTemplate.TESTFIELD("Force Posting Report",FALSE);
IF GenJnlTemplate.Recurring AND (GETFILTER("Posting Date") <> '') THEN
FIELDERROR("Posting Date",Text000);
IF NOT CONFIRM(Text001,FALSE) THEN
...
...
Text004@1004 : TextConst 'ENU=The journal lines were successfully posted. You are now in the %1 journal.';
GenJnlTemplate@1005 : Record 80;
GenJnlLine@1006 : Record 81;
GenJnlPostBatch@1007 : Codeunit 13;
TempJnlBatchName@1008 : Code[10];
// Add the following lines.
Text006@1170000000 : TextConst 'ENU=%1 in %2 must not be equal to %3 in %4';
LOCAL PROCEDURE Code@1();
VAR
JobJournalTemplate@1000 : Record 209;
SourceCodeSetup@1001 : Record 242;
BEGIN
WITH GenJnlLine DO BEGIN
GenJnlTemplate.GET("Journal Template Name");
IF GenJnlTemplate.Type = GenJnlTemplate.Type::Jobs THEN BEGIN
SourceCodeSetup.GET;
IF GenJnlTemplate."Source Code" = SourceCodeSetup."Job G/L WIP" THEN
ERROR(Text006,GenJnlTemplate.FIELDCAPTION("Source Code"),GenJnlTemplate.TABLECAPTION,
SourceCodeSetup.FIELDCAPTION("Job G/L WIP"),SourceCodeSetup.TABLECAPTION);
END;
// End of the lines.
GenJnlTemplate.TESTFIELD("Force Posting Report",FALSE);
IF GenJnlTemplate.Recurring AND (GETFILTER("Posting Date") <> '') THEN
FIELDERROR("Posting Date",Text000);
IF NOT CONFIRM(Text001,FALSE) THEN
...