InventCostHelp.calcVarianceFromAdjustment Method [AX 2012]

Calculates the production variances for a given production order based on the adjustments of the inventory.

protected InventCostTransVarianceList calcVarianceFromAdjustment(
    InventTransOriginId _inventTransOriginId, 
    CostGroupId _costGroupId, 
    InventCostVarianceType _varianceType, 
    DimensionDefault _dimension)

Run On

Called

Parameters

_inventTransOriginId
Type: InventTransOriginId Extended Data Type
_costGroupId
Type: CostGroupId Extended Data Type
The cost group ID that should assigned to the variance.
_varianceType
Type: InventCostVarianceType Enumeration
The variance type that is assigned to the variance.
_dimension
Type: DimensionDefault Extended Data Type
The dimension that is assigned to the variance.

Return Value

Type: InventCostTransVarianceList Class
A inventCostTransVariance list holding the variances.

This method will select the inventory settlements to determine the overall adjustment amount. This amount will then be created as a variance, with only the total level, not broken down any more.

Community Additions

ADD
Show: