Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- _ledgerVoucher
 Type: LedgerVoucher Class
- _voucher
 Type: Voucher Extended Data Type
 The voucher that is currently processed.
- _transDate
 Type: TransDate Extended Data Type
 The transDate that is used for this process.
- _adjustment
 Type: CostAmount Extended Data Type
 The costAmount to be added as a variance.
- _inventCostTransVarianceList
 Type: InventCostTransVarianceList Class
 The inventCostTransVarianceList that has to be added as a variance.
- _inventAdjustmentSpec
 Type: InventAdjustmentSpec Enumeration
- _inventTransCurrency
 Type: InventTransCurrency_RU Enumeration
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.