Share via


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.
  • _consumedItemId
    Type: ItemId Extended Data Type
    A string value that represents an item ID that is consumed to the production order.
  • _postLedger
    Type: boolean
    A boolean value that represents if the ledger should be posted.

Return Value

Type: InventCostProdIndirectData Class
A InventCostProdIndirectData_Invent object.

See Also

Reference

InventCostProdIndirectData_Invent Class