InventModelType.finalizeCostTransVariance Method [AX 2012]

Serves as the entry point for the standard cost processing that is called only one time for an instance of an inventMovement class after all the inventTrans records have been processed.

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
          public boolean finalizeCostTransVariance(
            InventMovement _inventMovement, 
            LedgerVoucher _ledgerVoucher, 
            InventCostTransState _costTransState, 
           [boolean _isReturn])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean finalizeCostTransVariance(
            InventMovement _inventMovement, 
            LedgerVoucher _ledgerVoucher, 
            InventCostTransState _costTransState, 
           [boolean _isReturn])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void finalizeCostTransVariance(
            InventMovement _inventMovement, 
            LedgerVoucher _ledgerVoucher, 
            InventCostTransState _costTransState, 
           [boolean _isReturn])

  Microsoft Dynamics AX 2012 (FPK)
          public void finalizeCostTransVariance(
            InventMovement _inventMovement, 
            LedgerVoucher _ledgerVoucher, 
            InventCostTransState _costTransState, 
           [boolean _isReturn])

  Microsoft Dynamics AX 2012 (SYS)
          public void finalizeCostTransVariance(
            InventMovement _inventMovement, 
            LedgerVoucher _ledgerVoucher, 
            InventCostTransState _costTransState, 
           [boolean _isReturn])

Run On

Called

Parameters

  • _ledgerVoucher
    Type: LedgerVoucher Class
    The ledgerVoucher object for the postings must be created.
  • _costTransState
    Type: InventCostTransState Enumeration
    An inventCostTransState enumeration that indicates whether it is a financial or physical update process.
  • _isReturn
    Type: boolean
    A Boolean flag that indicates if this method is called during a return process; optional.

Return Value

Type: boolean
Always returns false.

Remarks

This method was not implemented as abstract in order to keep the changes on the existing system as small as possible. Therefore it contains only a return and no other logic. The logic is currently only implemented in the inventModelType_StdCost child class.

See Also

Reference

InventModelType Class