Codeunit "Purch. Availability Mgt."

ID 99000973
Namespace: Microsoft.Purchases.Document

Methods

ShowItemAvailabilityFromPurchLine

procedure ShowItemAvailabilityFromPurchLine(var PurchLine: Record "Purchase Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowPurchLines

procedure ShowPurchLines(var Item: Record Item)

Parameters

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

TransferFromPurchase

procedure TransferFromPurchase(var InventoryEventBuffer: Record "Inventory Event Buffer", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

TransferFromPurchReturn

procedure TransferFromPurchReturn(var InventoryEventBuffer: Record "Inventory Event Buffer", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

Events

OnBeforeShowItemAvailFromPurchLine

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromPurchLine(var Item: Record Item, var PurchLine: Record "Purchase Line", var IsHandled: Boolean, AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

OnLookupEntriesOnAfterPurchLineSetFilters

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

Parameters

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

OnAfterTransferFromPurchase

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromPurchase(var InventoryEventBuffer: Record "Inventory Event Buffer", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnAfterTransferFromPurchReturn

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromPurchReturn(var InventoryEventBuffer: Record "Inventory Event Buffer", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
InventoryEventBuffer Table Microsoft.Inventory.Availability."Inventory Event Buffer"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnBeforeUpdatePurchOrderAvail

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchOrderAvail(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

See also