Codeunit 5975 Copy Service Contract Mgt.

Base Application, Microsoft.Service.Contract

Source AL, 117 lines

src/Layers/W1/BaseApp/Service/Contract/CopyServiceContractMgt.Codeunit.allines 9 to 24 of 117, Copyright (c) Microsoft Corporation. MIT

codeunit 5975 "Copy Service Contract Mgt."{    var        DocumentNoErr: Label 'Please enter a Contract No.';    procedure CopyServiceContractLines(ToServiceContractHeader: Record "Service Contract Header"; FromContractType: Enum "Service Contract Type From"; FromContractNo: Code[20]; var FromServiceContractLine: Record "Service Contract Line") AllLinesCopied: Boolean    var        ExistingServiceContractLine: Record "Service Contract Line";        ServContractManagement: Codeunit ServContractManagement;        LineNo: Integer;    begin        if FromContractNo = '' then            Error(DocumentNoErr);        ExistingServiceContractLine.LockTable();        ExistingServiceContractLine.Reset();

All 117 lines

Events 3 in 29

[IntegrationEvent] OnAfterCopyServiceContractLines(ToServiceContractHeader: Record "Service Contract Header"; FromContractType: Enum "Service Contract Type From"; FromDocNo: Code[20]; var FormServiceContractLine: Record "Service Contract Line")new in 24
[IntegrationEvent] OnAfterProcessServiceContractLine(var ToServiceContractLine: Record "Service Contract Line"; FromServiceContractLine: Record "Service Contract Line")new in 24
[IntegrationEvent] OnGetServiceContractTypeCaseElse(FromContractType: Enum "Service Contract Type From"; var ToContractType: Enum "Service Contract Type")new in 24

Public procedures 2 in 29

CopyServiceContractLines(ToServiceContractHeader: Record "Service Contract Header"; FromContractType: Enum "Service Contract Type From"; FromContractNo: Code[20]; var FromServiceContractLine: Record "Service Contract Line"): Booleannew in 24
GetServiceContractType(FromContractType: Enum "Service Contract Type From"): Enum "Service Contract Type"new in 24