Compartilhar via


InventTrans.updatePriceVarianceFin Method

Initializes an inventsettlement record to compensate an price variance adjustment for a transaction.

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 InventSettlement updatePriceVarianceFin(
            InventMovement _movement, 
            InventAccountType _inventAccountType, 
            Voucher _voucher, 
            date _postingDate, 
            CostAmount _varianceAmount, 
           [InventTransCurrency_RU _inventTransCurrency])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public InventSettlement updatePriceVarianceFin(
            InventMovement _movement, 
            InventAccountType _inventAccountType, 
            Voucher _voucher, 
            date _postingDate, 
            CostAmount _varianceAmount, 
           [InventTransCurrency_RU _inventTransCurrency])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public InventSettlement updatePriceVarianceFin(
            InventMovement _movement, 
            InventAccountType _inventAccountType, 
            Voucher _voucher, 
            date _postingDate, 
            CostAmount _varianceAmount)

Run On

Called

Parameters

  • _movement
    Type: InventMovement Class
    The current movement, where an adjustment to a inventTrans record occurred.
  • _postingDate
    Type: date
    The posting date for the adjustment.
  • _varianceAmount
    Type: CostAmount Extended Data Type
    The variance amount, that should be offset. If no cost amount is passed, the whole adjusted cost amount (including all the standard cost changes will be considered for creating the offset inventSettlement record.

Return Value

Type: InventSettlement Table
An inventSettlement record that has the offset amount.

Remarks

If no cost amount is specified, the difference to the standard cost value is used. The additional settlement, that will be created for a standard cost item is used, to adjust the inventory back down to the standard cost value.

See Also

Reference

InventTrans Table