Codeunit 6488 Serv. Undo Sales Shipment Line

Base Application, Microsoft.Sales.History

Source AL, 75 lines

src/Layers/W1/BaseApp/Service/Sales/History/ServUndoSalesShipmentLine.Codeunit.allines 8 to 23 of 75, Copyright (c) Microsoft Corporation. MIT

codeunit 6488 "Serv. Undo Sales Shipment Line"{    var        ServiceItem: Record "Service Item";        DeleteServiceItemsQst: Label 'Some shipment lines may have unused service items. Do you want to delete them?';    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Undo Sales Shipment Line", 'OnAfterCheckSalesShipmentLines', '', true, false)]    local procedure OnAfterCheckSalesShipmentLines(var SalesShipmentLine: Record "Sales Shipment Line"; var UndoSalesShptLineParams: Record "Undo Sales Shpt. Line Params")    begin        ServiceItem.SetCurrentKey("Sales/Serv. Shpt. Document No.");        ServiceItem.SetRange("Sales/Serv. Shpt. Document No.", SalesShipmentLine."Document No.");        if ServiceItem.FindFirst() then            UndoSalesShptLineParams."Delete Service Items" := ShouldDeleteServItems(SalesShipmentLine, ServiceItem, UndoSalesShptLineParams);    end;    local procedure ShouldDeleteServItems(var SalesShipmentLine: Record "Sales Shipment Line"; var ServiceItem: Record "Service Item"; var UndoSalesShptLineParams: Record "Undo Sales Shpt. Line Params") Result: Boolean

All 75 lines

Events 2 in 29

[IntegrationEvent] OnBeforeGetDeleteServItems(SalesShipmentLine: Record "Sales Shipment Line"; var ServiceItem: Record "Service Item"; HideDialog: Boolean; var Result: Boolean; var IsHandled: Boolean)new in 25
[IntegrationEvent] OnBeforeDeleteSalesShptLineServItems(var SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean)new in 25