microsoft / ALAppExtensions

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

Codeunit 5988 Serv-Documents Mgt. - OnPostDocumentLinesAfterCheckServItemRepairStatus #26770

Closed LaChris123 closed 4 days ago

LaChris123 commented 6 days ago

Describe the request

The following events are required for this object:

[IntegrationEvent(false, false)]
local procedure OnPostDocumentLinesAfterCheckServItemRepairStatus(var ServiceLine: Record "Service Line")
begin
end;    

Additional context

 procedure PostDocumentLines(var Window: Dialog)
  begin
    ServLine.Reset();
    SortLines(ServLine);
    OnPostDocumentLinesOnAfterSortLines(ServHeader, ServLine);
    ServLedgEntryNo := FindFirstServLedgEntry(ServLine);
    if ServLine.Find('-') then
        repeat
            ServPostingJnlsMgt.SetItemJnlRollRndg(false);
            if ServLine.Type = ServLine.Type::Item then
                DummyTrackingSpecification.CheckItemTrackingQuantity(
                  DATABASE::"Service Line", ServLine."Document Type".AsInteger(), ServLine."Document No.", ServLine."Line No.",
                  ServLine."Qty. to Ship (Base)", ServLine."Qty. to Invoice (Base)", Ship, Invoice);
            LineCount += 1;
                Window.Update(2, LineCount);

            with ServLine do begin
                OnPostDocumentLinesOnBeforeCheckServLine(ServHeader, ServLine, Ship, Invoice);

                if Ship and ("Qty. to Ship" <> 0) or Invoice and ("Qty. to Invoice" <> 0) then
                    ServOrderMgt.CheckServItemRepairStatus(ServHeader, ServItemLine, ServLine);

                OnPostDocumentLinesAfterCheckServItemRepairStatus(ServLine); //EVENT REQUEST
                ServLineOld := ServLine;

Internal work item: AB#539996

JesperSchulz commented 4 days 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: 21513.