Compartilhar via


ProdCalcTrans::updateRealCalcCostBreakdown Method

Updates the actual cost breakdown for a production calculation transaction.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          server public static void updateRealCalcCostBreakdown(ProdCalcTrans _prodCalcTrans, InventItemPrice _inventItemPrice)

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static void updateRealCalcCostBreakdown(ProdCalcTrans _prodCalcTrans, InventItemPrice _inventItemPrice)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static void updateRealCalcCostBreakdown(
            ProdCalcTrans _prodCalcTrans, 
            InventItemPrice _inventItemPrice, 
            UnitOfMeasureSymbol _unitID)

  Microsoft Dynamics AX 2012 (FPK)
          server public static void updateRealCalcCostBreakdown(
            ProdCalcTrans _prodCalcTrans, 
            InventItemPrice _inventItemPrice, 
            UnitOfMeasureSymbol _unitID)

  Microsoft Dynamics AX 2012 (SYS)
          server public static void updateRealCalcCostBreakdown(
            ProdCalcTrans _prodCalcTrans, 
            InventItemPrice _inventItemPrice, 
            UnitOfMeasureSymbol _unitID)

Run On

Server

Parameters

  • _prodCalcTrans
    Type: ProdCalcTrans Table
    A ProdCalcTrans record for which the cost breakdown is applied.
  • _inventItemPrice
    Type: InventItemPrice Table
    The InventItemPrice record that should be used to find the InventItemCostGroupRolluprecords; optional.

Remarks

The following data requirements must be set before the cost breakdown is applied:

  • The cost breakdown must be started through parameters.

  • The production calculation transaction must be of the BOM type.

  • The consumed item must be valued by using the standard cost model.

The parameter _unitID is obsolete, do not use it.

See Also

Reference

ProdCalcTrans Table