Share via


InventModelType_StdCost.finalizeCostTransVarianceSecCur_RU Method [AX 2012]

Calls the inventCostMovement.finalizeCostMovement method, which passes all the recordSortedLists instances to the inventCostUpdate class.

Syntax

public boolean finalizeCostTransVarianceSecCur_RU(
    InventMovement _inventMovement, 
    LedgerVoucher _ledgerVoucher, 
    InventCostTransState _costTransState, 
    boolean _secondary, 
   [boolean _isReturn])

Run On

Called

Parameters

  • _inventMovement
    Type: InventMovement Class
    The inventMovement class that is currently being processed.
  • _ledgerVoucher
    Type: LedgerVoucher Class
    The LedgerVoucher object to which the postings have to be added.
  • _costTransState
    Type: InventCostTransState Enumeration
    An inventCostTransState enumeration that indicates whether the process is a financial or physical update process.
  • _secondary
    Type: boolean
    A Boolean value that indicates whether the primary model is also "Standard cost," so that primary cost variances are already finalized.
  • _isReturn
    Type: boolean
    A Boolean value that indicates whether this method is called during a return process; optional.

Return Value

Type: boolean
A Boolean value that indicates whether cost variance processing was successful.

Remarks

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

After this call, the global class instance of the inventCostMovement class is reset.

See Also

Reference

InventModelType_StdCost Class