Codeunit 6488 Serv. Undo Sales Shipment Line
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: BooleanEvents 2 in 29
| [IntegrationEvent] On | new in 25 |
| [IntegrationEvent] On | new in 25 |