Table "Cost Element Buffer"
ID 5820
Namespace: Microsoft.Inventory.Costing
Properties
Name
Value
Caption
Cost Element Buffer
ReplicateData
False
DataClassification
CustomerContent
Fields
Name
Type
Description
Type
Microsoft.Inventory.Costing."Cost Entry Type"
"Variance Type"
Microsoft.Inventory.Costing."Cost Variance Type"
"Actual Cost"
Decimal
"Actual Cost (ACY)"
Decimal
"Rounding Residual"
Decimal
"Rounding Residual (ACY)"
Decimal
"Expected Cost"
Decimal
"Expected Cost (ACY)"
Decimal
"Invoiced Quantity"
Decimal
"Remaining Quantity"
Decimal
"Inbound Completely Invoiced"
Boolean
"Last Valid Value Entry No"
Integer
SystemId
Guid
SystemCreatedAt
DateTime
SystemCreatedBy
Guid
SystemModifiedAt
DateTime
SystemModifiedBy
Guid
SystemRowVersion
BigInteger
Methods
Initialize
procedure Initialize(KeepRoundingResidual: Boolean)
Parameters
Name
Type
Description
KeepRoundingResidual
Boolean
AddActualCost
Obsolete
This element will become obsolete from version 24.0. Unused
[Obsolete(Unused,24.0)]
procedure AddActualCost(NewType: Option, NewVarianceType: Option, NewActualCost: Decimal, NewActualCostACY: Decimal)
Parameters
Name
Type
Description
NewType
Option
NewVarianceType
Option
NewActualCost
Decimal
NewActualCostACY
Decimal
AddActualCostElement
Obsolete
This element will become obsolete from version 24.0. Use AddActualCostElement(NewEntryType: Enum "Cost Entry Type"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.
[Obsolete(Use AddActualCostElement(NewEntryType: Enum "Cost Entry Type"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.,24.0)]
procedure AddActualCostElement(NewEntryType: Enum "Cost Entry Type", NewVarianceType: Enum "Cost Variance Type", NewActualCost: Decimal, NewActualCostACY: Decimal)
Parameters
AddExpectedCostElement
Obsolete
This element will become obsolete from version 24.0. Use AddExpectedCostElement(NewEntryType: Enum "Cost Entry Type"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.
[Obsolete(Use AddExpectedCostElement(NewEntryType: Enum "Cost Entry Type"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.,24.0)]
procedure AddExpectedCostElement(NewEntryType: Enum "Cost Entry Type", NewVarianceType: Enum "Cost Variance Type", NewExpectedCost: Decimal, NewExpectedCostACY: Decimal)
Parameters
AddActualCostElement
procedure AddActualCostElement(NewEntryType: Enum "Cost Entry Type", NewActualCost: Decimal, NewActualCostACY: Decimal)
Parameters
AddActualCostElement
procedure AddActualCostElement(NewEntryType: Enum "Cost Entry Type", ValueEntry: Record "Value Entry")
Parameters
AddExpectedCostElement
procedure AddExpectedCostElement(NewEntryType: Enum "Cost Entry Type", NewExpectedCost: Decimal, NewExpectedCostACY: Decimal)
Parameters
AddExpectedCostElement
procedure AddExpectedCostElement(NewEntryType: Enum "Cost Entry Type", ValueEntry: Record "Value Entry")
Parameters
RoundActualCost
procedure RoundActualCost(ShareOfTotalCost: Decimal, AmtRndgPrec: Decimal, AmtRndgPrecACY: Decimal)
Parameters
Name
Type
Description
ShareOfTotalCost
Decimal
AmtRndgPrec
Decimal
AmtRndgPrecACY
Decimal
ExcludeEntryFromAvgCostCalc
procedure ExcludeEntryFromAvgCostCalc(ValueEntry: Record "Value Entry")
Parameters
Name
Type
Description
ValueEntry
Record "Value Entry"
ExcludeBufFromAvgCostCalc
procedure ExcludeBufFromAvgCostCalc(InvtAdjmtBuffer: Record "Inventory Adjustment Buffer")
Parameters
Name
Type
Description
InvtAdjmtBuffer
Record "Inventory Adjustment Buffer"
GetElement
Obsolete
This element will become obsolete from version 24.0. Use GetElement(NewEntryType: Enum "Cost Entry Type") instead.
[Obsolete(Use GetElement(NewEntryType: Enum "Cost Entry Type") instead.,24.0)]
procedure GetElement(NewEntryType: Enum "Cost Entry Type", NewVarianceType: Enum "Cost Variance Type"): Boolean
Parameters
Returns
GetElement
procedure GetElement(NewEntryType: Enum "Cost Entry Type"): Boolean
Parameters
Returns
DeductOutbndValueEntryFromBuf
procedure DeductOutbndValueEntryFromBuf(OutbndValueEntry: Record "Value Entry", CostElementBuf: Record "Cost Element Buffer", IsAvgCostCalcTypeItem: Boolean)
Parameters
Name
Type
Description
OutbndValueEntry
Record "Value Entry"
CostElementBuf
Record "Cost Element Buffer"
IsAvgCostCalcTypeItem
Boolean
UpdateAvgCostBuffer
procedure UpdateAvgCostBuffer(CostElementBuf: Record "Cost Element Buffer", LastValidEntryNo: Integer)
Parameters
Name
Type
Description
CostElementBuf
Record "Cost Element Buffer"
LastValidEntryNo
Integer
UpdateCostElementBuffer
procedure UpdateCostElementBuffer(AvgCostBuf: Record "Cost Element Buffer")
Parameters
Name
Type
Description
AvgCostBuf
Record "Cost Element Buffer"
See also