Codeunit "Service-Post+Print"

ID 5982
Namespace: Microsoft.Service.Posting

Properties

Name Value
TableNo Table Microsoft.Service.Document."Service Header"

Methods

PostDocument

procedure PostDocument(var Rec: Record "Service Header")

Parameters

Name Type Description
Rec Table Microsoft.Service.Document."Service Header"

GetReport

procedure GetReport(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

Events

OnAfterConfirmPost

[IntegrationEvent(False,False)]
local procedure OnAfterConfirmPost(var ServiceHeader: Record "Service Header", Ship: Boolean, Consume: Boolean, Invoice: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Ship Boolean
Consume Boolean
Invoice Boolean

OnAfterPost

[IntegrationEvent(False,False)]
local procedure OnAfterPost(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeConfirmPost

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmPost(var ServiceHeader: Record "Service Header", var HideDialog: Boolean, var Ship: Boolean, var Consume: Boolean, var Invoice: Boolean, var IsHandled: Boolean, var PassedServLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
HideDialog Boolean
Ship Boolean
Consume Boolean
Invoice Boolean
IsHandled Boolean
PassedServLine Table Microsoft.Service.Document."Service Line"

OnBeforeGetReport

[IntegrationEvent(False,False)]
local procedure OnBeforeGetReport(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeServiceCrMemoHeaderPrintRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeServiceCrMemoHeaderPrintRecords(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
IsHandled Boolean

OnBeforeServiceInvoiceHeaderPrintRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeServiceInvoiceHeaderPrintRecords(var ServiceInvoiceHeader: Record "Service Invoice Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
IsHandled Boolean

OnBeforeServiceShipmentHeaderPrintRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeServiceShipmentHeaderPrintRecords(var ServiceShipmentHeader: Record "Service Shipment Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
IsHandled Boolean

OnBeforePostDocument

[IntegrationEvent(False,False)]
local procedure OnBeforePostDocument(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeConfirmPostAndPrint

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmPostAndPrint(var ServiceHeader: Record "Service Header", var Ship: Boolean, var Consume: Boolean, var Invoice: Boolean, var DefaultOption: Integer, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Ship Boolean
Consume Boolean
Invoice Boolean
DefaultOption Integer
Result Boolean
IsHandled Boolean

See also