InventTrans.updateStdCostPriceVarianceFin Method
Initializes an inventsettlement record to compensate an adjustment for a standard cost 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 updateStdCostPriceVarianceFin(
InventMovement _movement,
Voucher _voucher,
date _postingDate,
[CostAmount _costAmount,
InventTransCurrency_RU _inventTransCurrency])
Microsoft Dynamics AX 2012 R2 (SYS)
public InventSettlement updateStdCostPriceVarianceFin(
InventMovement _movement,
Voucher _voucher,
date _postingDate,
[CostAmount _costAmount,
InventTransCurrency_RU _inventTransCurrency])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public InventSettlement updateStdCostPriceVarianceFin(
InventMovement _movement,
Voucher _voucher,
date _postingDate,
[CostAmount _costAmount])
Microsoft Dynamics AX 2012 (FPK)
public InventSettlement updateStdCostPriceVarianceFin(
InventMovement _movement,
Voucher _voucher,
date _postingDate,
[CostAmount _costAmount])
Microsoft Dynamics AX 2012 (SYS)
public InventSettlement updateStdCostPriceVarianceFin(
InventMovement _movement,
Voucher _voucher,
date _postingDate,
[CostAmount _costAmount])
Run On
Called
Parameters
- _movement
Type: InventMovement Class
The current movement, where an adjustment to a inventTrans record occurred.
- _voucher
Type: Voucher Extended Data Type
The current voucher that belongs to the adjustment.
- _postingDate
Type: date
The posting date for the adjustment.
- _costAmount
Type: CostAmount Extended Data Type
The cost 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.
- _inventTransCurrency
Type: InventTransCurrency_RU Enumeration
The type of currency(dual warehouse) for the adjustment.
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.