InventCostProdIndirectData_Invent::newConsumptionFromProdTable Method [AX 2012]
Initializes a new instance of the InventCostProdIndirectData_Invent class.
Syntax
client server public static InventCostProdIndirectData newConsumptionFromProdTable(
ProdTable _prodTable,
Qty _finishedQty,
ItemId _consumedItemId,
Qty _consumedQty,
CostAmount _consumedCostAmount,
boolean _postLedger,
[InventItemCostGroupRollupList _consumedCostGroupRollupList])
Run On
Called
Parameters
- _prodTable
Type: ProdTable Table
A ProdTable record that represents a production order.
- _finishedQty
Type: Qty Extended Data Type
A real value that represents a produced finished quantity.
- _consumedItemId
Type: ItemId Extended Data Type
A string value that represents an item ID that is consumed to the production order.
- _consumedQty
Type: Qty Extended Data Type
A real value that represents the consumed quantity.
- _consumedCostAmount
Type: CostAmount Extended Data Type
A real value that represents the consumed value.
- _postLedger
Type: boolean
A boolean value that represents if the ledger should be posted.
- _consumedCostGroupRollupList
Type: InventItemCostGroupRollupList Class
A InventItemCostGroupRollupList object that holds the cost broken down.
Return Value
Type: InventCostProdIndirectData Class
A InventCostProdIndirectData_Invent object.