Share via


InventCostUpdate.getCostTransVarianceList Method [AX 2012]

Returns a RecordSortedList object with all the InventCostTransVariance records for a given InventCostTrans object.

Syntax

public InventCostTransVarianceList getCostTransVarianceList(InventCostTrans _inventCostTrans)

Run On

Server

Parameters

  • _inventCostTrans
    Type: InventCostTrans Table
    The InventCostTrans record for which the RecordSortedList object with the variances is to be retrieved.

Return Value

Type: InventCostTransVarianceList Class
A recordSortedList object.

Remarks

Since the variance might not yet be been written to the database, first a check in the InventCostTransVarianceMap is executed. If the variance is found, the RecordSortedList object will be returned. Otherwise, a new RecordSortedList object is initialized from the static method InventCostTransVarianceList::initListWithoutTrans and returned. This method is used by the inventCostMovement class.

See Also

Reference

InventCostUpdate Class