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.
trigger of the "ServLedgerEntries - Post" codeunit (5912).
...
IF ApplyToServLedgEntry.GET(ServLine."Appl.-to Service Entry") THEN BEGIN
IF ApplyToServLedgEntry.Type = ApplyToServLedgEntry.Type::"Service Contract" THEN BEGIN
ServLedgEntry.RESET;
ServLedgEntry.SETCURRENTKEY(
"Service Contract No.","Entry No.","Entry Type",Type,"Moved from Prepaid Acc.");
ServLedgEntry.SETRANGE("Service Contract No.",ApplyToServLedgEntry."Service Contract No.");
ServLedgEntry.SETRANGE("Entry Type",ApplyToServLedgEntry."Entry Type");
ServLedgEntry.SETRANGE(Type,ApplyToServLedgEntry.Type);
ServLedgEntry.SETRANGE("Moved from Prepaid Acc.",ApplyToServLedgEntry."Moved from Prepaid Acc.");
IF ApplyToServLedgEntry."Apply Until Entry No." = 0 THEN
ServLedgEntry.SETRANGE("Entry No.",ApplyToServLedgEntry."Entry No.")
ELSE
ServLedgEntry.SETRANGE("Entry No.",ApplyToServLedgEntry."Entry No.",ApplyToServLedgEntry."Apply Until Entry No.");
IF ServLedgEntry.FIND('-') THEN
REPEAT
servledgentry.Open := FALSE;
IF ServHeader."Document Type" = ServHeader."Document Type"::Invoice THEN BEGIN
servledgentry."Document Type" := ServLedgEntry."Document Type"::Invoice;
servledgentry."Document No." := GenJnlLineDocNo;
END;
servledgentry.MODIFY;
UNTIL ServLedgEntry.NEXT = 0;
EXIT;
...
...
IF ApplyToServLedgEntry.GET(ServLine."Appl.-to Service Entry") THEN BEGIN
IF ApplyToServLedgEntry.Type = ApplyToServLedgEntry.Type::"Service Contract" THEN BEGIN
ServLedgEntry.RESET;
ServLedgEntry.SETCURRENTKEY(
"Service Contract No.","Entry No.","Entry Type",Type,"Moved from Prepaid Acc.");
ServLedgEntry.SETRANGE("Service Contract No.",ApplyToServLedgEntry."Service Contract No.");
ServLedgEntry.SETRANGE("Entry Type",ApplyToServLedgEntry."Entry Type");
ServLedgEntry.SETRANGE(Type,ApplyToServLedgEntry.Type);
ServLedgEntry.SETRANGE("Moved from Prepaid Acc.",ApplyToServLedgEntry."Moved from Prepaid Acc.");
IF ApplyToServLedgEntry."Apply Until Entry No." = 0 THEN
ServLedgEntry.SETRANGE("Entry No.",ApplyToServLedgEntry."Entry No.")
ELSE
ServLedgEntry.SETRANGE("Entry No.",ApplyToServLedgEntry."Entry No.",ApplyToServLedgEntry."Apply Until Entry No.");
IF ServLedgEntry.FIND('-') THEN BEGIN
ServLedgEntry.MODIFYALL(Open,FALSE);
IF ServHeader."Document Type" = ServHeader."Document Type"::Invoice THEN BEGIN
ServLedgEntry.MODIFYALL("Document Type",ServLedgEntry."Document Type"::Invoice);
ServLedgEntry.MODIFYALL("Document No.",GenJnlLineDocNo);
END;
END;
EXIT;
...
You cannot remove this hotfix.