Codeunit "Serv. Availability Mgt."

ID 6452
Namespace: Microsoft.Service.Document

Methods

SetServiceHeader

procedure SetServiceHeader(var OrderPromisingLine: Record "Order Promising Line", var ServiceHeader: Record "Service Header", var CaptionText: Text)

Parameters

Name Type Description
OrderPromisingLine Table Microsoft.Inventory.Availability."Order Promising Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
CaptionText Text

TransferToOrderPromisingLine

procedure TransferToOrderPromisingLine(var OrderPromisingLine: Record "Order Promising Line", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
OrderPromisingLine Table Microsoft.Inventory.Availability."Order Promising Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

ShowItemAvailabilityFromServLine

procedure ShowItemAvailabilityFromServLine(var ServLine: Record "Service Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowServiceLines

procedure ShowServiceLines(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

TransferFromServiceNeed

procedure TransferFromServiceNeed(var InventoryEventBuffer: Record "Inventory Event Buffer", ServiceLine: Record "Service Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ServiceLine Table Microsoft.Service.Document."Service Line"

Events

OnAfterTransferToOrderPromisingLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferToOrderPromisingLine(var OrderPromisingLine: Record "Order Promising Line", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
OrderPromisingLine Table Microsoft.Inventory.Availability."Order Promising Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeShowItemAvailFromServLine

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromServLine(var Item: Record Item, var ServLine: Record "Service Line")

Parameters

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

OnAfterTransferFromServiceNeed

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromServiceNeed(var InventoryEventBuffer: Record "Inventory Event Buffer", ServiceLine: Record "Service Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeUpdateServOrderAvail

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateServOrderAvail(var AvailabilityAtDate: Record "Availability at Date", var Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
AvailabilityAtDate Table Microsoft.Inventory.Availability."Availability at Date"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnSetServiceHeaderOnAfterFilterServiceLine

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

Parameters

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

See also