Codeunit 6464 Serv. Electr. Doc. Format

Base Application, Microsoft.Foundation.Reporting

Source AL, 131 lines

src/Layers/W1/BaseApp/Service/Foundation/Reporting/ServElectrDocFormat.Codeunit.allines 13 to 28 of 131, Copyright (c) Microsoft Corporation. MIT

codeunit 6464 "Serv. Electr. Doc. Format"{    procedure ValidateElectronicServiceDocument(ServiceHeader: Record "Service Header"; ElectronicFormat: Code[20])    var        ElectronicDocumentFormat: Record "Electronic Document Format";    begin        if not ElectronicDocumentFormat.Get(ElectronicFormat, "Electronic Document Format Usage"::"Service Validation") then            exit; // no validation required        CODEUNIT.Run(ElectronicDocumentFormat."Codeunit ID", ServiceHeader);    end;    [EventSubscriber(ObjectType::Table, Database::"Electronic Document Format", 'OnGetDocumentFormatUsageCaseElse', '', true, false)]    local procedure OnGetDocumentUsageCaseElse(DocumentRecordRef: RecordRef; var DocumentFormatUsage: Enum "Electronic Document Format Usage"; var IsHandled: Boolean)    begin

All 131 lines

Events 1 in 29

[IntegrationEvent] OnBeforeGetDocumentFormatUsageForServiceHeader(ServiceHeader: Record "Service Header"; var DocumentUsage: Enum "Electronic Document Format Usage"; var IsHandled: Boolean)new in 25

Public procedures 1 in 29

ValidateElectronicServiceDocument(ServiceHeader: Record "Service Header"; ElectronicFormat: Code[20])new in 25