InventModelType.addCostTransVariance Method [AX 2012]
Serves as the entry point for the standard cost processing that is called for each inventTrans record.
Syntax
public void addCostTransVariance(
InventTrans _inventTrans,
InventMovement _inventMovement,
Voucher _voucher,
TransDate _transDate,
InventCostTransState _costTransState,
[boolean _isReturn,
InventTrans _inventTransOrig])
Run On
Called
Parameters
- _inventTrans
Type: InventTrans Table
The inventTrans record that is currently processed.
- _inventMovement
Type: InventMovement Class
The inventMovement class that is currently processed.
- _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.
- _costTransState
Type: InventCostTransState Enumeration
An inventCostTransState Enum that indicates if it is a financial or physical update process.
- _isReturn
Type: boolean
A Boolean flag that indicates if this method is called during a return process; optional.
- _inventTransOrig
Type: InventTrans Table
The inventTrans record that is returned; optional.
Remarks
This method was not implemented as abstract to keep the changes on the existing system as small as possible. Therefore it just contains a return and no other logic.
The logic is currently only implemented in the inventModelType_StdCost child class.