microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 610 forks source link

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

Closed TMEKUMA closed 13 hours ago

TMEKUMA commented 1 month ago

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

azure-boards[bot] commented 1 month ago

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

AleksandricMarko commented 1 month ago

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

TMEKUMA commented 4 weeks ago

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

JesperSchulz commented 13 hours ago

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.