ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5988 "Serv-Documents Mgt." – OnBeforeRemoveLinesNotSatisfyPosting

Open TMEKUMA opened this issue 2 years ago • 4 comments

Describe the request

[Event Request] Codeunit 5988 "Serv-Documents Mgt." ??? OnBeforeRemoveLinesNotSatisfyPosting

Could we please have a publisher OnBeforeRemoveLinesNotSatisfyPosting in function RemoveLinesNotSatisfyPosting Codeunit 5988 "Serv-Documents Mgt."?

    local procedure RemoveLinesNotSatisfyPosting()
    var
        ServiceLine2: Record "Service Line";
        IsHandled: Boolean;
    begin
// >>>>>>>>
        IsHandled := false;
        OnBeforeRemoveLinesNotSatisfyPosting(ServHeader, ServLine, Ship, Consume, Invoice, IsHandled);
// >>>>>>>>


        // Find ServLines not selected to post, and check if they were completely posted
        if ServLine.FindFirst() then begin

// >>>>>>>>
    [IntegrationEvent(false, false)]
    local procedure OnBeforeRemoveLinesNotSatisfyPosting(var ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line"; Ship: Boolean; Consume: Boolean; Invoice: Boolean; var IsHandled: Boolean);
    begin
    end;
// <<<<<<<< 

Additional context

We have to transfer further lines to the documents. Internal work item: AB#543327

TMEKUMA avatar Jul 30 '24 14:07 TMEKUMA

✅ Successfully linked to Azure Boards work item(s):

azure-boards avatar Aug 02 '24 18:08 azure-boards

Hello @TMEKUMA Whit this event, do you want to skip whole procedure or just first block or something else?

AleksandricMarko avatar Aug 06 '24 10:08 AleksandricMarko

Hello @AleksandricMarko, I would like to skip the function completely and replace it with my own code.

TMEKUMA avatar Aug 13 '24 13:08 TMEKUMA

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 24072.

JesperSchulz avatar Sep 11 '24 21:09 JesperSchulz