ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Obsolete Warning Incorrect in Res. Journal Line

Open JellebBE opened this issue 10 months ago • 1 comments

Why do you need this change?

The obsolete message is wrong.

Describe the request

In the current version you find the following code in the base application in the Resource Journal Line:

    internal procedure RunOnAfterCopyResJnlLineFromServLine(var ServLine: Record Microsoft.Service.Document."Service Line"; var ResJnlLine: Record "Res. Journal Line")
    begin
        OnAfterCopyResJnlLineFromServLine(ServLine, ResJnlLine);
    end;

    [Obsolete('Moved to table Service Header', '25.0')]  <= 
    [IntegrationEvent(false, false)]
    local procedure OnAfterCopyResJnlLineFromServLine(var ServLine: Record Microsoft.Service.Document."Service Line"; var ResJnlLine: Record "Res. Journal Line")
    begin
    end;

This should be updated to:

    [Obsolete('Moved to table Service Line :"OnAfterCopyToResJournalLine" ', '25.0')] <=
    [IntegrationEvent(false, false)]
    local procedure OnAfterCopyResJnlLineFromServLine(var ServLine: Record Microsoft.Service.Document."Service Line"; var ResJnlLine: Record "Res. Journal Line")
    begin
    end;

On top of that is the current function not called as far as i could see.

 internal procedure RunOnAfterCopyResJnlLineFromServLine(var ServLine: Record Microsoft.Service.Document."Service Line"; var ResJnlLine: Record "Res. Journal Line")
    begin
        OnAfterCopyResJnlLineFromServLine(ServLine, ResJnlLine);
    end;

Internal work item: AB#617831

JellebBE avatar Jan 08 '26 09:01 JellebBE

The obsolete OnAfterCopyResJnlLineFromServLine event and its runner were removed during the CLEAN25 cleanup in main branch. No longer applicable

AleksandricMarko avatar Aug 21 '26 15:08 AleksandricMarko