Codeunit "Item Reference Management"

ID 5720
Namespace: Microsoft.Inventory.Item.Catalog

Properties

Name Value
Permissions TableData "Item Reference" = rid

Methods

EnterSalesItemReference

procedure EnterSalesItemReference(var SalesLine2: Record "Sales Line")

Parameters

Name Type Description
SalesLine2 Table Microsoft.Sales.Document."Sales Line"

ReferenceLookupSalesItem

procedure ReferenceLookupSalesItem(var SalesLine2: Record "Sales Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

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

EnterPurchaseItemReference

procedure EnterPurchaseItemReference(var PurchLine2: Record "Purchase Line")

Parameters

Name Type Description
PurchLine2 Table Microsoft.Purchases.Document."Purchase Line"

ReferenceLookupPurchaseItem

procedure ReferenceLookupPurchaseItem(var PurchLine2: Record "Purchase Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

Name Type Description
PurchLine2 Table Microsoft.Purchases.Document."Purchase 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

SalesReferenceNoLookup

procedure SalesReferenceNoLookup(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

SalesReferenceNoLookup

procedure SalesReferenceNoLookup(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"

ValidateSalesReferenceNo

procedure ValidateSalesReferenceNo(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SearchItem Boolean
CurrentFieldNo Integer

ValidateSalesReferenceNo

procedure ValidateSalesReferenceNo(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

PurchaseReferenceNoLookup

procedure PurchaseReferenceNoLookup(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

PurchaseReferenceNoLookup

procedure PurchaseReferenceNoLookup(var PurchaseLine: Record "Purchase Line", PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

ValidatePurchaseReferenceNo

procedure ValidatePurchaseReferenceNo(var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

PhysicalInventoryOrderReferenceNoLookup

procedure PhysicalInventoryOrderReferenceNoLookup(var PhysInvtOrderLine: Record "Phys. Invt. Order Line")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"

ValidatePhysicalInventoryOrderReferenceNo

procedure ValidatePhysicalInventoryOrderReferenceNo(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

ReferenceLookupPhysicalInventoryOrderItem

procedure ReferenceLookupPhysicalInventoryOrderItem(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean

PhysicalInventoryRecordReferenceNoLookup

procedure PhysicalInventoryRecordReferenceNoLookup(var PhysInvtRecordLine: Record "Phys. Invt. Record Line")

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"

ValidatePhysicalInventoryRecordReferenceNo

procedure ValidatePhysicalInventoryRecordReferenceNo(var PhysInvtRecordLine: Record "Phys. Invt. Record Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

ReferenceLookupPhysicalInventoryRecordItem

procedure ReferenceLookupPhysicalInventoryRecordItem(var PhysInvtRecordLine: Record "Phys. Invt. Record Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean

ItemJournalReferenceNoLookup

procedure ItemJournalReferenceNoLookup(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

ValidateItemJournalReferenceNo

procedure ValidateItemJournalReferenceNo(var ItemJournalLine: Record "Item Journal Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

ReferenceLookupItemJournalItem

procedure ReferenceLookupItemJournalItem(var ItemJournalLine: Record "Item Journal Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean

ValidateInvtDocumentReferenceNo

procedure ValidateInvtDocumentReferenceNo(var InvtDocumentLine: Record "Invt. Document Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer

ReferenceLookupInvtDocumentItem

procedure ReferenceLookupInvtDocumentItem(var InvtDocumentLine: Record "Invt. Document Line", var ReturnedItemReference: Record "Item Reference", ShowDialog: Boolean)

Parameters

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

InvtDocumentReferenceNoLookup

procedure InvtDocumentReferenceNoLookup(var InvtDocumentLine: Record "Invt. Document Line")

Parameters

Name Type Description
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"

Events

OnAfterSalesItemReferenceFound

[IntegrationEvent(False,False)]
local procedure OnAfterSalesItemReferenceFound(var SalesLine: Record "Sales Line", ItemReference: Record "Item Reference", SalesLineBeforeChanges: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SalesLineBeforeChanges Table Microsoft.Sales.Document."Sales Line"

OnAfterSalesItemItemRefNotFound

[IntegrationEvent(False,False)]
local procedure OnAfterSalesItemItemRefNotFound(var SalesLine: Record "Sales Line", var ItemVariant: Record "Item Variant", SalesLineBeforeChanges: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
SalesLineBeforeChanges Table Microsoft.Sales.Document."Sales Line"

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]

OnAfterPurchItemReferenceFound

[IntegrationEvent(False,False)]
local procedure OnAfterPurchItemReferenceFound(var PurchLine: Record "Purchase Line", ItemReference: Record "Item Reference")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterPurchItemItemRefNotFound

[IntegrationEvent(False,False)]
local procedure OnAfterPurchItemItemRefNotFound(var PurchaseLine: Record "Purchase Line", var ItemVariant: Record "Item Variant")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

OnAfterValidateSalesReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateSalesReferenceNo(var SalesLine: Record "Sales Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterValidatePurchaseReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidatePurchaseReferenceNo(var PurchaseLine: Record "Purchase Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase 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

OnBeforeEnterSalesItemReference

[IntegrationEvent(False,False)]
local procedure OnBeforeEnterSalesItemReference(var SalesLine: Record "Sales Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

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

OnBeforeFindItemReferenceForSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindItemReferenceForSalesLine(var SalesLine: Record "Sales Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

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

OnBeforeFillDescription

[IntegrationEvent(False,False)]
local procedure OnBeforeFillDescription(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
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

OnBeforeEnterPurchaseItemReference

[IntegrationEvent(False,False)]
local procedure OnBeforeEnterPurchaseItemReference(var PurchaseLine2: Record "Purchase Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine2 Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean
IsHandled Boolean

OnBeforePurchaseReferenceNoLookup

[IntegrationEvent(False,False)]
local procedure OnBeforePurchaseReferenceNoLookup(var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
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

OnBeforeReferenceLookupSalesItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupSalesItem(var SalesLine: Record "Sales Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

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

OnBeforeReferenceLookupPurchaseItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupPurchaseItem(var PurchaseLine: Record "Purchase Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
IsHandled Boolean

OnBeforeSalesReferenceNoLookup

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesReferenceNoLookup(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales 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

OnBeforeValidatePurchaseReferenceNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePurchaseReferenceNo(var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SearchItem Boolean
CurrentFieldNo Integer
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"

OnEnterPurchaseItemReferenceOnAfterCalcShouldAssignDescription

[IntegrationEvent(False,False)]
local procedure OnEnterPurchaseItemReferenceOnAfterCalcShouldAssignDescription(var PurchaseLine: Record "Purchase Line", ItemReference: Record "Item Reference", var ShouldAssignDescription: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShouldAssignDescription Boolean

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"

OnSalesReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnSalesReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnSalesReferenceNoLookupOnBeforeValidateUnitPrice

[IntegrationEvent(False,False)]
local procedure OnSalesReferenceNoLookupOnBeforeValidateUnitPrice(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnPurchaseReferenceNoLookUpOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnPurchaseReferenceNoLookUpOnAfterSetFilters(var ItemReference: Record "Item Reference", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnPurchaseReferenceNoLookupOnBeforeValidateDirectUnitCost

[IntegrationEvent(False,False)]
local procedure OnPurchaseReferenceNoLookupOnBeforeValidateDirectUnitCost(var PurchaseLine: Record "Purchase Line", PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

OnValidateSalesReferenceNoOnAfterAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateSalesReferenceNoOnAfterAssignNo(var SalesLine: Record "Sales Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnValidateSalesReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateSalesReferenceNoOnBeforeAssignNo(var SalesLine: Record "Sales Line", var ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnValidatePurchaseReferenceNoOnBeforePurchaseLineUpdateDirectUnitCost

[IntegrationEvent(False,False)]
local procedure OnValidatePurchaseReferenceNoOnBeforePurchaseLineUpdateDirectUnitCost(var PurchaseLine: Record "Purchase Line", ItemReference: Record "Item Reference")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnValidatePurchaseReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidatePurchaseReferenceNoOnBeforeAssignNo(var PurchaseLine: Record "Purchase Line", var ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnPhysicalInventoryOrderReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnPhysicalInventoryOrderReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", PhysInvtOrderLine: Record "Phys. Invt. Order Line")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"

OnBeforeReferenceLookupPhysicalInventoryOrderItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupPhysicalInventoryOrderItem(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
IsHandled Boolean

OnValidatePhysicalInventoryOrderReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidatePhysicalInventoryOrderReferenceNoOnBeforeAssignNo(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterValidatePhysicalInventoryOrderReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidatePhysicalInventoryOrderReferenceNo(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnPhysicalInventoryRecordReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnPhysicalInventoryRecordReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", PhysInvtRecordLine: Record "Phys. Invt. Record Line")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"

OnBeforeReferenceLookupPhysicalInventoryRecordItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupPhysicalInventoryRecordItem(var PhysInvtRecordLine: Record "Phys. Invt. Record Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
IsHandled Boolean

OnValidatePhysicalInventoryRecordReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidatePhysicalInventoryRecordReferenceNoOnBeforeAssignNo(var PhysInvtRecordLine: Record "Phys. Invt. Record Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterValidatePhysicalInventoryRecordReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidatePhysicalInventoryRecordReferenceNo(var PhysInvtRecordLine: Record "Phys. Invt. Record Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnItemJournalReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnItemJournalReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeReferenceLookupItemJournalItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupItemJournalItem(var ItemJournalLine: Record "Item Journal Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ShowDialog Boolean
IsHandled Boolean

OnValidateItemJournalReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateItemJournalReferenceNoOnBeforeAssignNo(var ItemJournalLine: Record "Item Journal Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterValidateItemJournalReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateItemJournalReferenceNo(var ItemJournalLine: Record "Item Journal Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnValidateInvtDocumentReferenceNoOnBeforeAssignNo

[IntegrationEvent(False,False)]
local procedure OnValidateInvtDocumentReferenceNoOnBeforeAssignNo(var InvtDocumentLine: Record "Invt. Document Line", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterValidateInvtDocumentReferenceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateInvtDocumentReferenceNo(var InvtDocumentLine: Record "Invt. Document Line", ItemReference: Record "Item Reference", ReturnedItemReference: Record "Item Reference")

Parameters

Name Type Description
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
ReturnedItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnBeforeReferenceLookupInvtDocumentItem

[IntegrationEvent(False,False)]
local procedure OnBeforeReferenceLookupInvtDocumentItem(var InvtDocumentLine: Record "Invt. Document Line", var ItemReference: Record "Item Reference", ShowDialog: Boolean, var IsHandled: Boolean)

Parameters

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

OnInvtDocumentReferenceNoLookupOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnInvtDocumentReferenceNoLookupOnAfterSetFilters(var ItemReference: Record "Item Reference", InvtDocumentLine: Record "Invt. Document Line")

Parameters

Name Type Description
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"

OnEnterSalesItemReferenceOnAfterFillDescriptionFromItem

[IntegrationEvent(False,False)]
local procedure OnEnterSalesItemReferenceOnAfterFillDescriptionFromItem(var SalesLine: Record "Sales Line", var Item: Record Item, SalesLineBeforeChanges: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
Item Table Microsoft.Inventory.Item.Item
SalesLineBeforeChanges Table Microsoft.Sales.Document."Sales Line"

OnEnterSalesItemReferenceOnAfterFillDescriptionFromItemVariant

[IntegrationEvent(False,False)]
local procedure OnEnterSalesItemReferenceOnAfterFillDescriptionFromItemVariant(var SalesLine: Record "Sales Line", var ItemVariant: Record "Item Variant", SalesLineBeforeChanges: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
SalesLineBeforeChanges Table Microsoft.Sales.Document."Sales Line"

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

OnBeforeValidateSalesReferenceNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSalesReferenceNo(var SalesLine: Record "Sales Line", ItemReference: Record "Item Reference", SearchItem: Boolean, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

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

OnBeforeSetFiltersBlankTypeItemRef

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

Parameters

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

OnFindItemReferenceForSalesLineOnBeforeFindFirst

[IntegrationEvent(False,False)]
local procedure OnFindItemReferenceForSalesLineOnBeforeFindFirst(var SalesLine: Record "Sales Line", var ItemReference: Record "Item Reference")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterFindItemReferenceForSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterFindItemReferenceForSalesLine(var SalesLine: Record "Sales Line", var ItemReference: Record "Item Reference", var Found: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean

OnBeforeFindItemReferenceForPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindItemReferenceForPurchaseLine(var PurchaseLine: Record "Purchase Line", var ItemReference: Record "Item Reference", var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean
IsHandled Boolean

OnFindItemReferenceForPurchaseLineBeforeFindFirst

[IntegrationEvent(False,False)]
local procedure OnFindItemReferenceForPurchaseLineBeforeFindFirst(var PurchaseLine: Record "Purchase Line", var ItemReference: Record "Item Reference")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"

OnAfterFindItemReferenceForPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnAfterFindItemReferenceForPurchaseLine(var PurchaseLine: Record "Purchase Line", var ItemReference: Record "Item Reference", var Found: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ItemReference Table Microsoft.Inventory.Item.Catalog."Item Reference"
Found Boolean

See also