Codeunit "Serv. Item Reference Mgt."

ID 5990
Namespace: Microsoft.Service.Document

Methods

EnterServiceItemReference

procedure EnterServiceItemReference(var ServiceLine: Record "Service Line")

Parameters

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

ReferenceLookupServiceItem

procedure ReferenceLookupServiceItem(var ServiceLine2: Record "Service Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

Name Type Description
ServiceLine2 Table Microsoft.Service.Document."Service Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean

InsertItemReference

procedure InsertItemReference(ItemVend: Record "Item Vendor")

Parameters

Name Type Description
ItemVend Table Microsoft.Inventory.Item.Catalog."Item Vendor"

DeleteItemReference

procedure DeleteItemReference(ItemVend: Record "Item Vendor")

Parameters

Name Type Description
ItemVend Table Microsoft.Inventory.Item.Catalog."Item Vendor"

UpdateItemReference

procedure UpdateItemReference(ItemVend: Record "Item Vendor", xItemVend: Record "Item Vendor")

Parameters

Name Type Description
ItemVend Table Microsoft.Inventory.Item.Catalog."Item Vendor"
xItemVend Table Microsoft.Inventory.Item.Catalog."Item Vendor"

FindOrSelectFromItemReferenceList

procedure FindOrSelectFromItemReferenceList(var ItemReferenceToReturn: Record "Item Reference", ShowDialog: Boolean, ItemNo: Code[20], ItemRefNo: Code[50], ItemRefTypeNo: Code[30], ItemRefType: Enum "Item Reference Type")

Parameters

Name Type Description
ItemReferenceToReturn Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
ItemNo Code[20]
ItemRefNo Code[50]
ItemRefTypeNo Code[30]
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"

FindOrSelectFromItemReferenceList

procedure FindOrSelectFromItemReferenceList(var ItemReferenceToReturn: Record "Item Reference", ShowDialog: Boolean, ItemNo: Code[20], ItemRefNo: Code[50], ItemRefTypeNo: Code[30], ItemRefType: Enum "Item Reference Type", ToDate: Date)

Parameters

Name Type Description
ItemReferenceToReturn Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
ItemNo Code[20]
ItemRefNo Code[50]
ItemRefTypeNo Code[30]
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
ToDate Date

ServiceReferenceNoLookup

procedure ServiceReferenceNoLookup(var ServiceLine: Record "Service Line")

Parameters

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

ServiceReferenceNoLookup

procedure ServiceReferenceNoLookup(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

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

ValidateServiceReferenceNo

procedure ValidateServiceReferenceNo(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
SearchItem Boolean
CurrentFieldNo Integer

ValidateServiceReferenceNo

procedure ValidateServiceReferenceNo(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", ItemReference2: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
ItemReference2 Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

Events

OnAfterServiceItemReferenceFound

[IntegrationEvent(False,False)]
local procedure OnAfterServiceItemReferenceFound(var ServiceLine: Record "Service Line", ItemReference: Record "Item Reference")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterServiceItemItemRefNotFound

[IntegrationEvent(False,False)]
local procedure OnAfterServiceItemItemRefNotFound(var ServiceLine: Record "Service Line", var ItemVariant: Record "Item Variant")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

OnAfterSetFiltersTypeAndTypeNoItemRef

[IntegrationEvent(False,False)]
local procedure OnAfterSetFiltersTypeAndTypeNoItemRef(var ItemReference: Record "Item Reference", ItemRefType: Enum "Item Reference Type", ItemRefTypeNo: Code[30])

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
ItemRefTypeNo Code[30]

OnAfterValidateServiceReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateServiceReferenceNo(var ServiceLine: Record "Service Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnBeforeCountItemReference

[IntegrationEvent(False,False)]
local procedure OnBeforeCountItemReference(var ItemReference: Record "Item Reference", var QtyCustOrVendCR: Integer, var QtyBarCodeAndBlankCR: Integer, ItemRefType: Enum "Item Reference Type", ItemRefTypeNo: Code[30], var IsHandled: Boolean)

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
QtyCustOrVendCR Integer
QtyBarCodeAndBlankCR Integer
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
ItemRefTypeNo Code[30]
IsHandled Boolean

OnBeforeEnterServiceItemReference

[IntegrationEvent(False,False)]
local procedure OnBeforeEnterServiceItemReference(var ServiceLine: Record "Service Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean
IsHandled Boolean

OnBeforeFindItemReferenceForServiceLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindItemReferenceForServiceLine(ServiceLine: Record "Service Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean
IsHandled Boolean

OnBeforeFillItemReferenceFromItemVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeFillItemReferenceFromItemVendor(var ItemReference: Record "Item Reference", ItemVend: Record "Item Vendor", var IsHandled: Boolean)

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemVend Table Microsoft.Inventory.Item.Catalog."Item Vendor"
IsHandled Boolean

OnBeforeProcessDecisionTree

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDecisionTree(var ItemReference: Record "Item Reference", QtyCustOrVendCR: Integer, QtyBarCodeAndBlankCR: Integer, ItemRefNo: Code[50], ItemRefType: Enum "Item Reference Type", ItemRefTypeNo: Code[30], var TempRecRequired: Boolean, var MultipleItemsToChoose: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
QtyCustOrVendCR Integer
QtyBarCodeAndBlankCR Integer
ItemRefNo Code[50]
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
ItemRefTypeNo Code[30]
TempRecRequired Boolean
MultipleItemsToChoose Boolean
IsHandled Boolean

OnBeforeReferenceLookupServiceItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupServiceItem(var ServiceLine: Record "Service Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
IsHandled Boolean

OnBeforeServiceReferenceNoLookup

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

Parameters

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

OnBeforeSelectOrFindReference

[IntegrationEvent(False,False)]
local procedure OnBeforeSelectOrFindReference(var ItemReference: Record "Item Reference", ItemRefNo: Code[50], ItemRefType: Enum "Item Reference Type", ItemRefTypeNo: Code[30], TempRecRequired: Boolean, MultipleItemsToChoose: Boolean, ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemRefNo Code[50]
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
ItemRefTypeNo Code[30]
TempRecRequired Boolean
MultipleItemsToChoose Boolean
ShowDialog Boolean
IsHandled Boolean

OnCreateItemReferenceOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnCreateItemReferenceOnBeforeInsert(var ItemReference: Record "Item Reference", ItemVendor: Record "Item Vendor")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemVendor Table Microsoft.Inventory.Item.Catalog."Item Vendor"

OnInitItemReferenceFiltersOnBeforeCheckIsEmpty

[IntegrationEvent(False,False)]
local procedure OnInitItemReferenceFiltersOnBeforeCheckIsEmpty(var ItemReference: Record "Item Reference", ItemRefType: Enum "Item Reference Type")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemRefType Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"

OnServiceReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnServiceReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnServiceReferenceNoLookupOnBeforeValidateUnitPrice

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

Parameters

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

OnValidateServiceReferenceNoOnAfterAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateServiceReferenceNoOnAfterAssignNo(var ServiceLine: Record "Service Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnValidateServiceReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateServiceReferenceNoOnBeforeAssignNo(var ServiceLine: Record "Service Line", var ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnEnterServiceItemReferenceOnAfterFillDescriptionFromItem

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

Parameters

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

OnEnterServiceItemReferenceOnAfterFillDescriptionFromItemVariant

[IntegrationEvent(False,False)]
local procedure OnEnterServiceItemReferenceOnAfterFillDescriptionFromItemVariant(var ServiceLine: Record "Service Line", var ItemVariant: Record "Item Variant")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

OnBeforeCreateItemReference

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateItemReference(ItemVendor: Record "Item Vendor", var IsHandled: Boolean)

Parameters

Name Type Description
ItemVendor Table Microsoft.Inventory.Item.Catalog."Item Vendor"
IsHandled Boolean

OnBeforeValidateServiceReferenceNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateServiceReferenceNo(var ServiceLine: Record "Service Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer
IsHandled Boolean

See also