Share via


Codeunit "Item Availability Forms Mgt"

ID 353
Namespace: Microsoft.Inventory.Availability

Methods

CalcItemPlanningFields

procedure CalcItemPlanningFields(var Item: Record Item, CalculateTransferQuantities: Boolean)

Parameters

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

CalculateNeed

procedure CalculateNeed(var Item: Record Item, var GrossRequirement: Decimal, var PlannedOrderReceipt: Decimal, var ScheduledReceipt: Decimal, var PlannedOrderReleases: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
GrossRequirement Decimal
PlannedOrderReceipt Decimal
ScheduledReceipt Decimal
PlannedOrderReleases Decimal

CalcAvailQuantities

procedure CalcAvailQuantities(var Item: Record Item, IsBalanceAtDate: Boolean, var GrossRequirement: Decimal, var PlannedOrderRcpt: Decimal, var ScheduledRcpt: Decimal, var PlannedOrderReleases: Decimal, var ProjAvailableBalance: Decimal, var ExpectedInventory: Decimal, var QtyAvailable: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
IsBalanceAtDate Boolean
GrossRequirement Decimal
PlannedOrderRcpt Decimal
ScheduledRcpt Decimal
PlannedOrderReleases Decimal
ProjAvailableBalance Decimal
ExpectedInventory Decimal
QtyAvailable Decimal

CalcAvailQuantities

procedure CalcAvailQuantities(var Item: Record Item, IsBalanceAtDate: Boolean, var GrossRequirement: Decimal, var PlannedOrderRcpt: Decimal, var ScheduledRcpt: Decimal, var PlannedOrderReleases: Decimal, var ProjAvailableBalance: Decimal, var ExpectedInventory: Decimal, var QtyAvailable: Decimal, var AvailableInventory: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
IsBalanceAtDate Boolean
GrossRequirement Decimal
PlannedOrderRcpt Decimal
ScheduledRcpt Decimal
PlannedOrderReleases Decimal
ProjAvailableBalance Decimal
ExpectedInventory Decimal
QtyAvailable Decimal
AvailableInventory Decimal

ShowItemLedgerEntries

procedure ShowItemLedgerEntries(var Item: Record Item, NetChange: Boolean)

Parameters

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

ShowSalesLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Sales Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Sales Availability Mgt.,25.0)]
procedure ShowSalesLines(var Item: Record Item)

Parameters

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

ShowServLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Serv. Availability Mgt.,25.0)]
procedure ShowServLines(var Item: Record Item)

Parameters

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

ShowJobPlanningLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Job Planning Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Job Planning Availability Mgt.,25.0)]
procedure ShowJobPlanningLines(var Item: Record Item)

Parameters

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

ShowPurchLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Purch. Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Purch. Availability Mgt.,25.0)]
procedure ShowPurchLines(var Item: Record Item)

Parameters

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

ShowSchedReceipt

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Prod. Order Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Prod. Order Availability Mgt.,25.0)]
procedure ShowSchedReceipt(var Item: Record Item)

Parameters

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

ShowSchedNeed

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Prod. Order Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Prod. Order Availability Mgt.,25.0)]
procedure ShowSchedNeed(var Item: Record Item)

Parameters

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

ShowTransLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Transfer Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Transfer Availability Mgt.,25.0)]
procedure ShowTransLines(var Item: Record Item, What: Integer)

Parameters

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

ShowAsmOrders

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Assembly Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Assembly Availability Mgt.,25.0)]
procedure ShowAsmOrders(var Item: Record Item)

Parameters

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

ShowAsmCompLines

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Assembly Availability Mgt.

[Obsolete(Replaced by same procedure in codeunit Assembly Availability Mgt.,25.0)]
procedure ShowAsmCompLines(var Item: Record Item)

Parameters

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

ShowItemAvailLineList

procedure ShowItemAvailLineList(var Item: Record Item, What: Integer)

Parameters

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

ShowItemAvailFromItem

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityFromItem with enum

[Obsolete(Replaced by procedure ShowItemAvailabilityFromItem with enum,25.0)]
procedure ShowItemAvailFromItem(var Item: Record Item, AvailabilityType: Option)

Parameters

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

ShowItemAvailabilityFromItem

procedure ShowItemAvailabilityFromItem(var Item: Record Item, AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowItemAvailFromSalesLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromSalesLine in Sales Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromSalesLine in Sales Availability Mgt.,25.0)]
procedure ShowItemAvailFromSalesLine(var SalesLine: Record "Sales Line", AvailabilityType: Option)

Parameters

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

ShowItemAvailFromPurchLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromPurchLine in Purch. Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromPurchLine in Purch. Availability Mgt.,25.0)]
procedure ShowItemAvailFromPurchLine(var PurchLine: Record "Purchase Line", AvailabilityType: Option)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
AvailabilityType Option

ShowItemAvailFromReqLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromReqLine in Req. Line Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromReqLine in Req. Line Availability Mgt.,25.0)]
procedure ShowItemAvailFromReqLine(var ReqLine: Record "Requisition Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowItemAvailFromProdOrderLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailFromProdOrderLine in Prod. Order Availability Mgt.

[Obsolete(Replaced by ShowItemAvailFromProdOrderLine in Prod. Order Availability Mgt.,25.0)]
procedure ShowItemAvailFromProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", AvailabilityType: Option)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
AvailabilityType Option

ShowItemAvailFromProdOrderComp

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailFromProdOrderComp in Prod. Order Availability Mgt.

[Obsolete(Replaced by ShowItemAvailFromProdOrderComp in Prod. Order Availability Mgt.,25.0)]
procedure ShowItemAvailFromProdOrderComp(var ProdOrderComp: Record "Prod. Order Component", AvailabilityType: Option)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
AvailabilityType Option

ShowItemAvailFromTransLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromTransLine in Transfer Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromTransLine in Transfer Availability Mgt.,25.0)]
procedure ShowItemAvailFromTransLine(var TransLine: Record "Transfer Line", AvailabilityType: Option)

Parameters

Name Type Description
TransLine Table Microsoft.Inventory.Transfer."Transfer Line"
AvailabilityType Option

ShowItemAvailFromWhseActivLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromWhseActivLine in Warehouse Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromWhseActivLine in Warehouse Availability Mgt.,25.0)]
procedure ShowItemAvailFromWhseActivLine(var WhseActivLine: Record "Warehouse Activity Line", AvailabilityType: Option)

Parameters

Name Type Description
WhseActivLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
AvailabilityType Option

ShowItemAvailFromServLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromServLine in Serv. Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromServLine in Serv. Availability Mgt.,25.0)]
procedure ShowItemAvailFromServLine(var ServLine: Record "Service Line", AvailabilityType: Option)

Parameters

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

ShowItemAvailFromWhseRcptLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailFromWhseRcptLine in Warehouse Availability Mgt.

[Obsolete(Replaced by ShowItemAvailFromWhseRcptLine in Warehouse Availability Mgt.,25.0)]
procedure ShowItemAvailFromWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line", AvailabilityType: Option)

Parameters

Name Type Description
WhseRcptLine Table Microsoft.Warehouse.Document."Warehouse Receipt Line"
AvailabilityType Option

ShowItemAvailFromItemJnlLine

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityFromItemJnlLine()

[Obsolete(Replaced by procedure ShowItemAvailabilityFromItemJnlLine(),25.0)]
procedure ShowItemAvailFromItemJnlLine(var ItemJnlLine: Record "Item Journal Line", AvailabilityType: Option)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
AvailabilityType Option

ShowItemAvailabilityFromItemJnlLine

procedure ShowItemAvailabilityFromItemJnlLine(var ItemJnlLine: Record "Item Journal Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowItemAvailFromAsmHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromAsmHeader in Assembly Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromAsmHeader in Assembly Availability Mgt.,25.0)]
procedure ShowItemAvailFromAsmHeader(var AsmHeader: Record "Assembly Header", AvailabilityType: Option)

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
AvailabilityType Option

ShowItemAvailFromAsmLine

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromAsmLine in Assembly Availability Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromAsmLine in Assembly Availability Mgt.,25.0)]
procedure ShowItemAvailFromAsmLine(var AsmLine: Record "Assembly Line", AvailabilityType: Option)

Parameters

Name Type Description
AsmLine Table Microsoft.Assembly.Document."Assembly Line"
AvailabilityType Option

ShowItemAvailFromPlanningComp

Obsolete

This element will become obsolete from version 25.0. Replaced by ShowItemAvailabilityFromPlanningComp in Planning Comp. Avail. Mgt.

[Obsolete(Replaced by ShowItemAvailabilityFromPlanningComp in Planning Comp. Avail. Mgt.,25.0)]
procedure ShowItemAvailFromPlanningComp(var PlanningComp: Record "Planning Component", AvailabilityType: Option)

Parameters

Name Type Description
PlanningComp Table Microsoft.Inventory.Planning."Planning Component"
AvailabilityType Option

ShowItemAvailFromInvtDocLine

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityFromInvtDocLine()

[Obsolete(Replaced by procedure ShowItemAvailabilityFromInvtDocLine(),25.0)]
procedure ShowItemAvailFromInvtDocLine(var InvtDocLine: Record "Invt. Document Line", AvailabilityType: Option)

Parameters

Name Type Description
InvtDocLine Table Microsoft.Inventory.Document."Invt. Document Line"
AvailabilityType Option

ShowItemAvailabilityFromInvtDocLine

procedure ShowItemAvailabilityFromInvtDocLine(var InvtDocLine: Record "Invt. Document Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
InvtDocLine Table Microsoft.Inventory.Document."Invt. Document Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

ShowItemAvailByEvent

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByEvent()

[Obsolete(Replaced by procedure ShowItemAvailabilityByEvent(),25.0)]
procedure ShowItemAvailByEvent(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date, IncludeForecast: Boolean): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date
IncludeForecast Boolean

Returns

Type Description
Boolean

ShowItemAvailabilityByEvent

procedure ShowItemAvailabilityByEvent(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date, IncludeForecast: Boolean): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date
IncludeForecast Boolean

Returns

Type Description
Boolean

ShowItemAvailByLoc

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByLocation()

[Obsolete(Replaced by procedure ShowItemAvailabilityByLocation(),25.0)]
procedure ShowItemAvailByLoc(var Item: Record Item, FieldCaption: Text[80], OldLocationCode: Code[20], var NewLocationCode: Code[20]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldLocationCode Code[20]
NewLocationCode Code[20]

Returns

Type Description
Boolean

ShowItemAvailabilityByLocation

procedure ShowItemAvailabilityByLocation(var Item: Record Item, FieldCaption: Text, OldLocationCode: Code[10], var NewLocationCode: Code[10]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldLocationCode Code[10]
NewLocationCode Code[10]

Returns

Type Description
Boolean

ShowItemAvailByDate

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByPeriod()

[Obsolete(Replaced by procedure ShowItemAvailabilityByPeriod(),25.0)]
procedure ShowItemAvailByDate(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date

Returns

Type Description
Boolean

ShowItemAvailabilityByPeriod

procedure ShowItemAvailabilityByPeriod(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date

Returns

Type Description
Boolean

ShowItemAvailVariant

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByVariant()

[Obsolete(Replaced by procedure ShowItemAvailabilityByVariant(),25.0)]
procedure ShowItemAvailVariant(var Item: Record Item, FieldCaption: Text[80], OldVariant: Code[20], var NewVariant: Code[20]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldVariant Code[20]
NewVariant Code[20]

Returns

Type Description
Boolean

ShowItemAvailabilityByVariant

procedure ShowItemAvailabilityByVariant(var Item: Record Item, FieldCaption: Text, OldVariantCode: Code[10], var NewVariantCode: Code[10]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldVariantCode Code[10]
NewVariantCode Code[10]

Returns

Type Description
Boolean

ShowItemAvailByBOMLevel

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByBOMLevel()

[Obsolete(Replaced by procedure ShowItemAvailabilityByBOMLevel(),25.0)]
procedure ShowItemAvailByBOMLevel(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date

Returns

Type Description
Boolean

ShowItemAvailabilityByBOMLevel

procedure ShowItemAvailabilityByBOMLevel(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date

Returns

Type Description
Boolean

ShowItemAvailByUOM

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure ShowItemAvailabilityByUOM()

[Obsolete(Replaced by procedure ShowItemAvailabilityByUOM(),25.0)]
procedure ShowItemAvailByUOM(var Item: Record Item, FieldCaption: Text[80], OldUoMCode: Code[10], var NewUoMCode: Code[10]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldUoMCode Code[10]
NewUoMCode Code[10]

Returns

Type Description
Boolean

ShowItemAvailabilityByUOM

procedure ShowItemAvailabilityByUOM(var Item: Record Item, FieldCaption: Text, OldUoMCode: Code[10], var NewUoMCode: Code[10]): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldUoMCode Code[10]
NewUoMCode Code[10]

Returns

Type Description
Boolean

SetQtyByUnitOfMeasure

procedure SetQtyByUnitOfMeasure(NewQtyByUnitOfMeasure: Decimal)

Parameters

Name Type Description
NewQtyByUnitOfMeasure Decimal

SetForecastName

procedure SetForecastName(NewForecastName: Code[10])

Parameters

Name Type Description
NewForecastName Code[10]

FilterItem

procedure FilterItem(var Item: Record Item, LocationCode: Code[20], VariantCode: Code[20], Date: Date)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
LocationCode Code[20]
VariantCode Code[20]
Date Date

ByEvent

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByEvent(): Integer

Returns

Type Description
Integer

ByLocation

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByLocation(): Integer

Returns

Type Description
Integer

ByVariant

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByVariant(): Integer

Returns

Type Description
Integer

ByPeriod

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByPeriod(): Integer

Returns

Type Description
Integer

ByBOM

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByBOM(): Integer

Returns

Type Description
Integer

ByUOM

Obsolete

This element will become obsolete from version 25.0. Replaced by enum "Item Availability Type"

[Obsolete(Replaced by enum "Item Availability Type",25.0)]
procedure ByUOM(): Integer

Returns

Type Description
Integer

Events

OnAfterCalcItemPlanningFields

[IntegrationEvent(False,False)]
local procedure OnAfterCalcItemPlanningFields(var Item: Record Item)

Parameters

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

OnAfterCalculateNeed

[IntegrationEvent(False,False)]
local procedure OnAfterCalculateNeed(var Item: Record Item, var GrossRequirement: Decimal, var PlannedOrderReceipt: Decimal, var ScheduledReceipt: Decimal, var PlannedOrderReleases: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
GrossRequirement Decimal
PlannedOrderReceipt Decimal
ScheduledReceipt Decimal
PlannedOrderReleases Decimal

OnAfterCalculateProjAvailableBalance

[IntegrationEvent(False,False)]
local procedure OnAfterCalculateProjAvailableBalance(var Item: Record Item, var ProjAvailableBalance: Decimal)

Parameters

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

OnBeforeShowItemAvailByBOMLevel

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByBOMLevel

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByBOMLevel,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailByBOMLevel(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByBOMLevel

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByBOMLevel(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailByDate

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByPeriod

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByPeriod,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailByDate(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByPeriod

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByPeriod(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailByEvent

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByEvent

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByEvent,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailByEvent(var Item: Record Item, FieldCaption: Text[80], OldDate: Date, var NewDate: Date, var IncludeForecast: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldDate Date
NewDate Date
IncludeForecast Boolean
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByEvent

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByEvent(var Item: Record Item, FieldCaption: Text, OldDate: Date, var NewDate: Date, var IncludeForecast: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldDate Date
NewDate Date
IncludeForecast Boolean
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailByLoc

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByLocation

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByLocation,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailByLoc(var Item: Record Item, FieldCaption: Text[80], OldLocationCode: Code[20], var NewLocationCode: Code[20], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldLocationCode Code[20]
NewLocationCode Code[20]
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByLocation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByLocation(var Item: Record Item, FieldCaption: Text, OldLocationCode: Code[10], var NewLocationCode: Code[10], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldLocationCode Code[10]
NewLocationCode Code[10]
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailByUOM

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByUOM

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByUOM,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailByUOM(var Item: Record Item, FieldCaption: Text[80], OldUoMCode: Code[20], var NewUoMCode: Code[20], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldUoMCode Code[20]
NewUoMCode Code[20]
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByUOM

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByUOM(var Item: Record Item, FieldCaption: Text, OldUoMCode: Code[10], var NewUoMCode: Code[10], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldUoMCode Code[10]
NewUoMCode Code[10]
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailFromItem

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromItem(var Item: Record Item)

Parameters

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

OnBeforeShowItemAvailFromItemJnlLine

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityFromItemJnlLine

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityFromItemJnlLine,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromItemJnlLine(var Item: Record Item, var ItemJnlLine: Record "Item Journal Line", AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
AvailabilityType Option

OnBeforeShowItemAvailabilityFromItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityFromItemJnlLine(var Item: Record Item, var ItemJnlLine: Record "Item Journal Line", AvailabilityType: Enum "Item Availability Type")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
AvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"

OnBeforeShowItemAvailFromSalesLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Sales Availability Mgt.

[Obsolete(Replaced by same event in codeunit Sales Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromSalesLine(var Item: Record Item, var SalesLine: Record "Sales Line", var IsHandled: Boolean, AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean
AvailabilityType Option

OnBeforeShowItemAvailFromPurchLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Purch. Availability Mgt.

[Obsolete(Replaced by same event in codeunit Purch. Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromPurchLine(var Item: Record Item, var PurchLine: Record "Purchase Line", var IsHandled: Boolean, AvailabilityType: Option)

Parameters

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

OnBeforeShowItemAvailFromServLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Availability Mgt.

[Obsolete(Replaced by same event in codeunit Serv. Availability Mgt.,25.0)]
[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"

OnBeforeShowItemAvailFromReqLine

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityFromReqLine

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityFromReqLine,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromReqLine(var Item: Record Item, var ReqLine: Record "Requisition Line", AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
AvailabilityType Option

OnBeforeShowItemAvailFromProdOrderLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Prod. Order Availability Mgt.

[Obsolete(Replaced by same event in codeunit Prod. Order Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromProdOrderLine(var Item: Record Item, var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeShowItemAvailFromProdOrderComp

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Prod. Order Availability Mgt.

[Obsolete(Replaced by same event in codeunit Prod. Order Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromProdOrderComp(var Item: Record Item, var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnBeforeShowItemAvailFromTransLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Transfer Availability Mgt.

[Obsolete(Replaced by same event in codeunit Transfer Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromTransLine(var Item: Record Item, var TransLine: Record "Transfer Line", AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
TransLine Table Microsoft.Inventory.Transfer."Transfer Line"
AvailabilityType Option

OnBeforeShowItemAvailFromWhseActivLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Warehouse Availability Mgt.

[Obsolete(Replaced by same event in codeunit Warehouse Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromWhseActivLine(var Item: Record Item, var WhseActivLine: Record "Warehouse Activity Line", AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
WhseActivLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
AvailabilityType Option

OnBeforeShowItemAvailFromWhseRcptLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Warehouse Availability Mgt.

[Obsolete(Replaced by same event in codeunit Warehouse Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromWhseRcptLine(var Item: Record Item, var WhseRcptLine: Record "Warehouse Receipt Line", AvailabilityType: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
WhseRcptLine Table Microsoft.Warehouse.Document."Warehouse Receipt Line"
AvailabilityType Option

OnBeforeShowItemAvailFromAsmHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Assembly Availability Mgt.

[Obsolete(Replaced by same event in codeunit Assembly Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromAsmHeader(var Item: Record Item, var AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnBeforeShowItemAvailFromAsmLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Assembly Availability Mgt.

[Obsolete(Replaced by same event in codeunit Assembly Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromAsmLine(var Item: Record Item, var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnBeforeShowItemAvailFromPlanningComp

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Assembly Availability Mgt.

[Obsolete(Replaced by same event in codeunit Assembly Availability Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailFromPlanningComp(var Item: Record Item, var PlanningComp: Record "Planning Component")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
PlanningComp Table Microsoft.Inventory.Planning."Planning Component"

OnBeforeShowItemAvailVariant

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnBeforeShowItemAvailabilityByVariant

[Obsolete(Replaced by event OnBeforeShowItemAvailabilityByVariant,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailVariant(var Item: Record Item, FieldCaption: Text[80], OldVariant: Code[20], var NewVariant: Code[20], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text[80]
OldVariant Code[20]
NewVariant Code[20]
Result Boolean
IsHandled Boolean

OnBeforeShowItemAvailabilityByVariant

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemAvailabilityByVariant(var Item: Record Item, FieldCaption: Text, OldVariant: Code[10], var NewVariant: Code[10], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FieldCaption Text
OldVariant Code[10]
NewVariant Code[10]
Result Boolean
IsHandled Boolean

OnCalculateNeedOnAfterCalcGrossRequirement

[IntegrationEvent(False,False)]
local procedure OnCalculateNeedOnAfterCalcGrossRequirement(var Item: Record Item, var GrossRequirement: Decimal)

Parameters

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

OnCalculateNeedOnAfterCalcScheduledReceipt

[IntegrationEvent(False,False)]
local procedure OnCalculateNeedOnAfterCalcScheduledReceipt(var Item: Record Item, var ScheduledReceipt: Decimal, QtyinTransit: Decimal, TransOrdReceiptQty: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ScheduledReceipt Decimal
QtyinTransit Decimal
TransOrdReceiptQty Decimal

OnAfterFilterItem

[IntegrationEvent(False,False)]
local procedure OnAfterFilterItem(var Item: Record Item, LocationCode: Code[20], VariantCode: Code[20], Date: Date)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
LocationCode Code[20]
VariantCode Code[20]
Date Date

OnBeforeCalculateNeed

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateNeed(var Item: Record Item, var GrossRequirement: Decimal, var PlannedOrderReceipt: Decimal, var ScheduledReceipt: Decimal, var PlannedOrderReleases: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
GrossRequirement Decimal
PlannedOrderReceipt Decimal
ScheduledReceipt Decimal
PlannedOrderReleases Decimal
IsHandled Boolean

OnShowItemAvailLineListOnAfterItemAvailabilityLineListInit

[IntegrationEvent(False,False)]
local procedure OnShowItemAvailLineListOnAfterItemAvailabilityLineListInit(var Item: Record Item, var ItemAvailabilityLineList: Page "Item Availability Line List")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemAvailabilityLineList Page Microsoft.Inventory.Availability."Item Availability Line List"

OnShowItemAvailabilityFromInvtDocLineOnAvailabilityTypeCaseElse

[IntegrationEvent(False,False)]
local procedure OnShowItemAvailabilityFromInvtDocLineOnAvailabilityTypeCaseElse(ItemAvailabilityType: Enum "Item Availability Type", var Item: Record Item, var InvtDocumentLine: Record "Invt. Document Line")

Parameters

Name Type Description
ItemAvailabilityType Enum Microsoft.Inventory.Availability."Item Availability Type"
Item Table Microsoft.Inventory.Item.Item
InvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"

OnBeforeShowBOMLevelAbleToMake

[IntegrationEvent(False,False)]
local procedure OnBeforeShowBOMLevelAbleToMake(FieldCaption: Text, OldDate: Date, var NewDate: Date)

Parameters

Name Type Description
FieldCaption Text
OldDate Date
NewDate Date

See also