Share via


InventModelType_StdCost.finalizeCostTransVariance Method [AX 2012]

Calls the inventCostMovement.finalizeCostMovement method, which will pass all the recordSortedLists lists to the inventCostUpdate class.

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 to which the postings must be added.
  • _costTransState
    Type: InventCostTransState Enumeration
    An inventCostTransState enumeration that indicates whether it is a financial or physical update process.
  • _isReturn
    Type: boolean
    A Boolean value that indicates whether this method is called during a return process; optional.

Return Value

Type: boolean
true if successful; otherwise, false.

Remarks

When all the records for one inventMovement class have been processed, this method will be called. The call of the inventCostMovement.finalizeCostMovement method will pass all the records that have been stored in the inventCostMovement class to the inventCostUpdate class, which will keep the records in memory until the last commit is called.

See Also

Reference

InventModelType_StdCost Class