InventModelType_MovingAverage.setExpectedCost Method [AX 2012]
Sets the expected cost for the item and financial dimension.
Syntax
protected void setExpectedCost(
InventSum _inventSum,
InventTrans _inventTrans,
CostAmount _expense)
Run On
Called
Parameters
- _inventSum
Type: InventSum Table
The InventSum record with the financial values, ItemId and financial InventDimId values to set the expected cost.
- _inventTrans
Type: InventTrans Table
The InventTrans record.
- _expense
Type: CostAmount Extended Data Type
The amount that is expensed.
Remarks
The expected cost is validated before the transactions commit.