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 Line codeunit (12) as follows:
...
IF TempJnlLineDim.FINDLAST THEN;
GTAServType := AppServiceTaxEntry."GTA Service Type"; // PS 30956
//Insert Difference Entries
WITH GenJnlLineST DO BEGIN
IF (AppServiceTaxEntry.GTA) THEN BEGIN
IF (AppServiceTaxEntry."GTA Service Type" <> AppServiceTaxEntry."GTA Service Type"::"Outward GTA") THEN
InitGLEntry(STPayableAcc,
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(ServiceTaxSetup."Service Tax Payable Account",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
END ELSE
InitGLEntry(STPayableAcc,
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
InsertGLEntry(TRUE);
IF (AppServiceTaxEntry.GTA) THEN BEGIN
InitGLEntry(ServiceTaxSetup."Receivables Account (Interim)",
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
END ELSE BEGIN
IF AppServiceTaxEntry.Type = AppServiceTaxEntry.Type::Sale THEN BEGIN
IF (GenJnlLineST."Currency Factor" < CurrFactor) THEN
InitGLEntry(CurrencyRec."Realized Gains Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(CurrencyRec."Realized Losses Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
END ELSE
IF AppServiceTaxEntry.Type = AppServiceTaxEntry.Type::Purchase THEN BEGIN
IF (GenJnlLineST."Currency Factor" < CurrFactor) THEN
InitGLEntry(CurrencyRec."Realized Losses Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(CurrencyRec."Realized Gains Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
END;
END;
InsertGLEntry(TRUE);
END;
...
...
// Add the following line.
IF PostingAmount <> (NewServTaxAmtFCY + NewServTaxECessAmtFCY + NewServTaxSheCessAmtFCY) THEN BEGIN
WITH GenJnlLineST DO BEGIN
IF (AppServiceTaxEntry.GTA) THEN BEGIN
IF (AppServiceTaxEntry."GTA Service Type" <> AppServiceTaxEntry."GTA Service Type"::"Outward GTA") THEN
InitGLEntry(STPayableAcc,
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(ServiceTaxSetup."Service Tax Payable Account",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
END ELSE
InitGLEntry(STPayableAcc,
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
InsertGLEntry(TRUE);
IF (AppServiceTaxEntry.GTA) THEN BEGIN
InitGLEntry(ServiceTaxSetup."Receivables Account (Interim)",
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
END ELSE BEGIN
IF AppServiceTaxEntry.Type = AppServiceTaxEntry.Type::Sale THEN BEGIN
IF (GenJnlLineST."Currency Factor" < CurrFactor) THEN
InitGLEntry(CurrencyRec."Realized Gains Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(CurrencyRec."Realized Losses Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
END ELSE
IF AppServiceTaxEntry.Type = AppServiceTaxEntry.Type::Purchase THEN BEGIN
IF (GenJnlLineST."Currency Factor" < CurrFactor) THEN
InitGLEntry(CurrencyRec."Realized Losses Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry")
ELSE
InitGLEntry(CurrencyRec."Realized Gains Acc.",
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
-(NewServTaxAmt+NewServTaxECessAmt+NewServTaxSheCessAmt),
TRUE,"System-Created Entry");
END;
END;
InsertGLEntry(TRUE);
END;
// Add the following line.
END;
...