Share via


InventModelType_StdCost.adjustCostTrans Method [AX 2012]

Calls the inventCostAdjust::adjustFromInventTrans method to create a variance for the passed in inventTrans record.

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 void adjustCostTrans(
            InventTrans _inventTrans, 
            LedgerVoucher _ledgerVoucher, 
            Voucher _voucher, 
            TransDate _transDate, 
            CostAmount _adjustment, 
           [InventCostTransVarianceList _inventCostTransVarianceList, 
            InventAdjustmentSpec _inventAdjustmentSpec, 
            InventTransCurrency_RU _inventTransCurrency])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void adjustCostTrans(
            InventTrans _inventTrans, 
            LedgerVoucher _ledgerVoucher, 
            Voucher _voucher, 
            TransDate _transDate, 
            CostAmount _adjustment, 
           [InventCostTransVarianceList _inventCostTransVarianceList, 
            InventAdjustmentSpec _inventAdjustmentSpec, 
            InventTransCurrency_RU _inventTransCurrency])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void adjustCostTrans(
            InventTrans _inventTrans, 
            LedgerVoucher _ledgerVoucher, 
            Voucher _voucher, 
            TransDate _transDate, 
            CostAmount _adjustment, 
           [InventCostTransVarianceList _inventCostTransVarianceList, 
            InventAdjustmentSpec _inventAdjustmentSpec])

  Microsoft Dynamics AX 2012 (FPK)
          public void adjustCostTrans(
            InventTrans _inventTrans, 
            LedgerVoucher _ledgerVoucher, 
            Voucher _voucher, 
            TransDate _transDate, 
            CostAmount _adjustment, 
           [InventCostTransVarianceList _inventCostTransVarianceList, 
            InventAdjustmentSpec _inventAdjustmentSpec])

  Microsoft Dynamics AX 2012 (SYS)
          public void adjustCostTrans(
            InventTrans _inventTrans, 
            LedgerVoucher _ledgerVoucher, 
            Voucher _voucher, 
            TransDate _transDate, 
            CostAmount _adjustment, 
           [InventCostTransVarianceList _inventCostTransVarianceList, 
            InventAdjustmentSpec _inventAdjustmentSpec])

Run On

Called

Parameters

  • _inventTrans
    Type: InventTrans Table
    The inventTrans record that is currently processed.

Remarks

The inventCostAdjust::adjustFromInventTrans method is called, which provides the interface to the inventCostAdjust class. This class will handle creating the variance for this inventTrans record.

See Also

Reference

InventModelType_StdCost Class