Codeunit ServAllocationManagement

ID 5930
Namespace: Microsoft.Service.Document

Properties

Name Value
Permissions TableData "Service Order Allocation" = rimd

Methods

AllocateDate

procedure AllocateDate(DocumentType: Integer, DocumentNo: Code[20], EntryNo: Integer, ResNo: Code[20], ResGrNo: Code[20], CurrentDate: Date, Quantity: Decimal)

Parameters

Name Type Description
DocumentType Integer
DocumentNo Code[20]
EntryNo Integer
ResNo Code[20]
ResGrNo Code[20]
CurrentDate Date
Quantity Decimal

CancelAllocation

procedure CancelAllocation(var ServOrderAlloc: Record "Service Order Allocation")

Parameters

Name Type Description
ServOrderAlloc Table Microsoft.Service.Document."Service Order Allocation"

CreateAllocationEntry

procedure CreateAllocationEntry(DocumentType: Integer, DocumentNo: Code[20], ServItemLineNo: Integer, ServItemNo: Code[20], ServSerialNo: Code[50])

Parameters

Name Type Description
DocumentType Integer
DocumentNo Code[20]
ServItemLineNo Integer
ServItemNo Code[20]
ServSerialNo Code[50]

SplitAllocation

procedure SplitAllocation(var SplitServOrderAlloc: Record "Service Order Allocation")

Parameters

Name Type Description
SplitServOrderAlloc Table Microsoft.Service.Document."Service Order Allocation"

ResourceQualified

procedure ResourceQualified(ResourceNo: Code[20], Type: Enum "Resource Skill Type", No: Code[20]): Boolean

Parameters

Name Type Description
ResourceNo Code[20]
Type Enum Microsoft.Service.Resources."Resource Skill Type"
No Code[20]

Returns

Type Description
Boolean

QualifiedForServiceItemLine

procedure QualifiedForServiceItemLine(var ServiceItemLine: Record "Service Item Line", ResourceNo: Code[20]): Boolean

Parameters

Name Type Description
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
ResourceNo Code[20]

Returns

Type Description
Boolean

CheckServiceItemLineFinished

procedure CheckServiceItemLineFinished(var ServHeader: Record "Service Header", ServiceItemLineNo: Integer)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceItemLineNo Integer

SetServOrderAllocStatus

procedure SetServOrderAllocStatus(var ServHeader: Record "Service Header")

Parameters

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

SetServLineAllocStatus

procedure SetServLineAllocStatus(var ServLine: Record "Service Line")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"

Events

OnAfterAllocateDate

[IntegrationEvent(False,False)]
local procedure OnAfterAllocateDate(var ServOrderAllocation: Record "Service Order Allocation", var ServHeader: Record "Service Header")

Parameters

Name Type Description
ServOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"
ServHeader Table Microsoft.Service.Document."Service Header"

OnAfterCancelAllocation

[IntegrationEvent(False,False)]
local procedure OnAfterCancelAllocation(var ServOrderAllocation: Record "Service Order Allocation", var ServHeader: Record "Service Header")

Parameters

Name Type Description
ServOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"
ServHeader Table Microsoft.Service.Document."Service Header"

OnBeforeAllocateDate

[IntegrationEvent(False,False)]
local procedure OnBeforeAllocateDate(DocumentType: Integer, DocumentNo: Code[20], EntryNo: Integer, ResNo: Code[20], ResGrNo: Code[20], CurrentDate: Date, Quantity: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
DocumentType Integer
DocumentNo Code[20]
EntryNo Integer
ResNo Code[20]
ResGrNo Code[20]
CurrentDate Date
Quantity Decimal
IsHandled Boolean

OnBeforeCancelAllocation

[IntegrationEvent(False,False)]
local procedure OnBeforeCancelAllocation(var ServOrderAllocation: Record "Service Order Allocation", var IsHandled: Boolean)

Parameters

Name Type Description
ServOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"
IsHandled Boolean

OnBeforeCreateAllocationEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateAllocationEntry(DocumentType: Integer, DocumentNo: Code[20], ServItemLineNo: Integer, ServItemNo: Code[20], ServSerialNo: Code[50], var IsHandled: Boolean)

Parameters

Name Type Description
DocumentType Integer
DocumentNo Code[20]
ServItemLineNo Integer
ServItemNo Code[20]
ServSerialNo Code[50]
IsHandled Boolean

OnSplitAllocationOnBeforeServOrderAllocModify

[IntegrationEvent(False,False)]
local procedure OnSplitAllocationOnBeforeServOrderAllocModify(var ServiceOrderAllocation: Record "Service Order Allocation", var SplitServiceOrderAllocation: Record "Service Order Allocation")

Parameters

Name Type Description
ServiceOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"
SplitServiceOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"

OnSetServOrderAllocStatusOnBeforeServOrderAlloc2Modify

[IntegrationEvent(False,False)]
local procedure OnSetServOrderAllocStatusOnBeforeServOrderAlloc2Modify(var ServiceOrderAllocation: Record "Service Order Allocation", var ServiceOrderAllocation2: Record "Service Order Allocation", var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceOrderAllocation Table Microsoft.Service.Document."Service Order Allocation"
ServiceOrderAllocation2 Table Microsoft.Service.Document."Service Order Allocation"
ServiceHeader Table Microsoft.Service.Document."Service Header"

See also