Share via


Codeunit "Calc. Availability Overview"

ID 5830
Namespace: Microsoft.Inventory.Availability

Properties

Name Value
TableNo Table Microsoft.Inventory.Availability."Availability Calc. Overview"

Methods

CalculateItem

procedure CalculateItem(var AvailabilityCalcOverview: Record "Availability Calc. Overview")

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"

CalculateDate

procedure CalculateDate(var AvailabilityCalcOverview: Record "Availability Calc. Overview")

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"

EntriesExist

procedure EntriesExist(var AvailabilityCalcOverview: Record "Availability Calc. Overview"): Boolean

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"

Returns

Type Description
Boolean

InsertEntry

Obsolete

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

[Obsolete(Replaced by InsertAvailabilityEntry(),25.0)]
procedure InsertEntry(var AvailabilityCalcOverview: Record "Availability Calc. Overview", NewType: Integer, NewDate: Date, NewLocation: Code[10], NewVariantCode: Code[10], NewQuantityBase: Decimal, NewReservQtyBase: Decimal, NewSourceType: Integer, NewSourceOrderStatus: Integer, NewSourceID: Code[20], NewDescription: Text[100], NewDemandType: Option)

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
NewType Integer
NewDate Date
NewLocation Code[10]
NewVariantCode Code[10]
NewQuantityBase Decimal
NewReservQtyBase Decimal
NewSourceType Integer
NewSourceOrderStatus Integer
NewSourceID Code[20]
NewDescription Text[100]
NewDemandType Option

InsertAvailabilityEntry

procedure InsertAvailabilityEntry(var AvailabilityCalcOverview: Record "Availability Calc. Overview", NewType: Integer, NewDate: Date, NewLocation: Code[10], NewVariantCode: Code[10])

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
NewType Integer
NewDate Date
NewLocation Code[10]
NewVariantCode Code[10]

InsertAvailabilityEntry

procedure InsertAvailabilityEntry(var AvailabilityCalcOverview: Record "Availability Calc. Overview", NewType: Integer, NewDate: Date, NewLocation: Code[10], NewVariantCode: Code[10], NewQuantityBase: Decimal, NewReservQtyBase: Decimal, NewSourceType: Integer, NewSourceOrderStatus: Integer, NewSourceID: Code[20], NewDescription: Text[100], NewDemandType: Enum "Demand Order Source Type")

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
NewType Integer
NewDate Date
NewLocation Code[10]
NewVariantCode Code[10]
NewQuantityBase Decimal
NewReservQtyBase Decimal
NewSourceType Integer
NewSourceOrderStatus Integer
NewSourceID Code[20]
NewDescription Text[100]
NewDemandType Enum Microsoft.Inventory.Requisition."Demand Order Source Type"

SetParam

Obsolete

This element will become obsolete from version 25.0. Replaced by SetParameters() with enum

[Obsolete(Replaced by SetParameters() with enum,25.0)]
procedure SetParam(NewDemandType: Option, NewDemandNo: Code[20])

Parameters

Name Type Description
NewDemandType Option
NewDemandNo Code[20]

SetParameters

procedure SetParameters(NewDemandType: Enum "Demand Order Source Type", NewDemandNo: Code[20])

Parameters

Name Type Description
NewDemandType Enum Microsoft.Inventory.Requisition."Demand Order Source Type"
NewDemandNo Code[20]

Events

OnAfterCalcRunningTotals

[IntegrationEvent(False,False)]
local procedure OnAfterCalcRunningTotals(var Item: Record Item, var RunningTotal: Decimal, var InventoryRunningTotal: Decimal, var SupplyRunningTotal: Decimal, var DemandRunningTotal: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
RunningTotal Decimal
InventoryRunningTotal Decimal
SupplyRunningTotal Decimal
DemandRunningTotal Decimal

OnInsertEntryOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnInsertEntryOnBeforeInsert(var AvailabilityCalcOverview: Record "Availability Calc. Overview")

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"

OnUpdateRunningTotalsOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnUpdateRunningTotalsOnBeforeModify(var AvailabilityCalcOverview: Record "Availability Calc. Overview")

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"

OnGetDemandDates

[IntegrationEvent(True,False)]
local procedure OnGetDemandDates(var AvailabilityCalcOverview: Record "Availability Calc. Overview", var Item: Record Item)

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
Item Table Microsoft.Inventory.Item.Item

OnGetDemandEntries

[IntegrationEvent(True,False)]
local procedure OnGetDemandEntries(var AvailabilityCalcOverview: Record "Availability Calc. Overview", var Item: Record Item)

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
Item Table Microsoft.Inventory.Item.Item

OnGetSupplyDates

[IntegrationEvent(True,False)]
local procedure OnGetSupplyDates(var AvailabilityCalcOverview: Record "Availability Calc. Overview", var Item: Record Item)

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
Item Table Microsoft.Inventory.Item.Item

OnGetSupplyEntries

[IntegrationEvent(True,False)]
local procedure OnGetSupplyEntries(var AvailabilityCalcOverview: Record "Availability Calc. Overview", var Item: Record Item)

Parameters

Name Type Description
AvailabilityCalcOverview Table Microsoft.Inventory.Availability."Availability Calc. Overview"
Item Table Microsoft.Inventory.Item.Item

OnCheckItemInRange

[IntegrationEvent(False,False)]
local procedure OnCheckItemInRange(var Item: Record Item, DemandType: Enum "Demand Order Source Type", DemandNo: Code[20], var Found: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
DemandType Enum Microsoft.Inventory.Requisition."Demand Order Source Type"
DemandNo Code[20]
Found Boolean

OnDemandExist

[IntegrationEvent(False,False)]
local procedure OnDemandExist(var Item: Record Item, var Exists: Boolean)

Parameters

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

OnSupplyExist

[IntegrationEvent(False,False)]
local procedure OnSupplyExist(var Item: Record Item, var Exists: Boolean)

Parameters

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

OnAfterCalcDemandRunningTotal

[IntegrationEvent(False,False)]
local procedure OnAfterCalcDemandRunningTotal(var Item: Record Item, var DemandRunningTotal: Decimal)

Parameters

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

See also