Codeunit "Service-Post (Yes/No)"
ID 5981
Namespace: Microsoft.Service.Posting
Properties
| Name | Value |
|---|---|
| EventSubscriberInstance | Manual |
| TableNo | Table Microsoft.Service.Document."Service Line" |
Methods
PostDocument
procedure PostDocument(var ServiceHeaderSource: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeaderSource | Table Microsoft.Service.Document."Service Header" |
PostDocumentWithLines
procedure PostDocumentWithLines(var ServiceHeaderSource: Record "Service Header", var PassedServLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeaderSource | Table Microsoft.Service.Document."Service Header" | |
| PassedServLine | Table Microsoft.Service.Document."Service Line" |
PreviewDocument
procedure PreviewDocument(var ServHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServHeader | Table Microsoft.Service.Document."Service Header" |
MessageIfPostingPreviewMultipleDocuments
procedure MessageIfPostingPreviewMultipleDocuments(var ServiceHeaderToPreview: Record "Service Header", DocumentNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeaderToPreview | Table Microsoft.Service.Document."Service Header" | |
| DocumentNo | Code[20] |
PreviewDocumentWithLines
procedure PreviewDocumentWithLines(var ServHeader: Record "Service Header", var PassedServLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| ServHeader | Table Microsoft.Service.Document."Service Header" | |
| PassedServLine | Table Microsoft.Service.Document."Service Line" |
SetGlobalServiceHeader
procedure SetGlobalServiceHeader(var ServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeader | Table Microsoft.Service.Document."Service Header" |
GetGlobalServiceHeader
procedure GetGlobalServiceHeader(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 PassedServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PassedServiceHeader | Table Microsoft.Service.Document."Service Header" |
OnBeforeConfirmServPost
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmServPost(var ServiceHeader: Record "Service Header", var HideDialog: Boolean, var Ship: Boolean, var Consume: Boolean, var Invoice: Boolean, var IsHandled: Boolean, PreviewMode: Boolean, var ServiceLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| HideDialog | Boolean | |
| Ship | Boolean | |
| Consume | Boolean | |
| Invoice | Boolean | |
| IsHandled | Boolean | |
| PreviewMode | Boolean | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" |
OnBeforePostDocument
[IntegrationEvent(False,False)]
local procedure OnBeforePostDocument(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" |
OnBeforePostDocumentWithLines
[IntegrationEvent(False,False)]
local procedure OnBeforePostDocumentWithLines(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" |
OnBeforePreviewDocument
[IntegrationEvent(False,False)]
local procedure OnBeforePreviewDocument(var ServHeader: Record "Service Header", var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ServHeader | Table Microsoft.Service.Document."Service Header" | |
| IsHandled | Boolean |
OnBeforeConfirmPost
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmPost(var ServiceHeader: Record "Service Header", var Ship: Boolean, var Consume: Boolean, var Invoice: Boolean, var DefaultOption: Integer, PreviewMode: Boolean, 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 | |
| PreviewMode | Boolean | |
| Result | Boolean | |
| IsHandled | Boolean |