Codeunit 6461 Serv. Document Print

Base Application, Microsoft.Foundation.Reporting

Source AL, 280 lines

src/Layers/W1/BaseApp/Service/Document/ServDocumentPrint.Codeunit.allines 13 to 28 of 280, Copyright (c) Microsoft Corporation. MIT

codeunit 6461 "Serv. Document Print"{    var        MissingReportSelectionErr: Label 'Report Selections is missing for %1 %2.', Comment = '%1 - Contract Type, %2 - Contract No.';        MissingReportSelection2Err: Label '%1 for %2 is missing in Report Selections.', Comment = '%1 - Document Type, %2 - Service Header';    [EventSubscriber(ObjectType::Table, Database::"Report Selections", 'OnAfterIsCustomerAccount', '', true, false)]    local procedure OnAfterIsCustomerAccount(DocumentTableId: Integer; var IsCustomer: Boolean);    begin        if DocumentTableId = Database::"Service Invoice Header" then            IsCustomer := true;    end;    [EventSubscriber(ObjectType::Table, Database::"Report Selections", 'OnSendEmailDirectlyOnAfterSetFieldName', '', true, false)]    local procedure OnSendEmailDirectlyOnAfterSetFieldName(DocumentTableId: Integer; var FieldName: Text);

All 280 lines

Events 6 in 29

[IntegrationEvent] OnBeforeCalcServDisc(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)new in 25
[IntegrationEvent] OnBeforePrintServiceHeader(var ServiceHeader: Record "Service Header"; ReportUsage: Integer; var IsPrinted: Boolean)new in 25
[IntegrationEvent] OnBeforePrintServiceItemWorksheet(var ServiceItemLine: Record "Service Item Line"; ReportUsage: Enum "Report Selection Usage"; var IsPrinted: Boolean)new in 25
[IntegrationEvent] OnBeforePrintServiceContract(var ServiceContractHeader: Record "Service Contract Header"; ReportUsage: Integer; var IsPrinted: Boolean)new in 25
[IntegrationEvent] OnGetServHeaderDocTypeUsageElseCase(ServiceHeader: Record "Service Header"; var TypeUsage: Integer; var IsHandled: Boolean)new in 25
[IntegrationEvent] OnGetServContractTypeUsageElseCase(ServiceContractHeader: Record "Service Contract Header"; var TypeUsage: Integer; var IsHandled: Boolean)new in 25

Public procedures 8 in 29

PrintServiceHeader(ServiceHeader: Record "Service Header")new in 25
PrintServiceItemWorksheet(ServiceItemLine: Record "Service Item Line")new in 25
PrintServiceContract(ServiceContractHeader: Record "Service Contract Header")new in 25
CalcServDisc(var ServHeader: Record "Service Header")new in 25
GetServContractTypeUsage(ServiceContractHeader: Record "Service Contract Header"): Enum "Report Selection Usage"new in 25
GetServHeaderDocTypeUsage(ServiceHeader: Record "Service Header"): Enum "Report Selection Usage"new in 25

All 8 procedures