InventCostTrans::initInventCostTrans Method
Initializes an inventCostTrans record.
Syntax
client server public static InventCostTrans initInventCostTrans(
InventCostTransState _costTransState,
InventItemPrice _inventItemPrice,
InventTable _inventTable,
Voucher _voucher,
TransDate _transDate,
[DimensionDefault _dimension,
InventTrans _inventTrans,
InventDim _inventDim,
InventTransOrigin _inventTransOrigin,
InventCostTransType _costTransType,
LeanCostingFacadeBase _leanCostingFacade])
Run On
Called
Parameters
- _costTransState
Type: InventCostTransState Enumeration
The costTransState record that should be used to initialize this record.
- _inventItemPrice
Type: InventItemPrice Table
The inventItemPrice record that belongs to the inventCostTrans record.
- _inventTable
Type: InventTable Table
The inventTable record from which the data should be taken.
- _voucher
Type: Voucher Extended Data Type
The voucher that belongs to this inventCostTrans record.
- _transDate
Type: TransDate Extended Data Type
The transDate record that belongs to this inventCostTrans record.
- _dimension
Type: DimensionDefault Extended Data Type
The dimension that belongs to this record.
- _inventTrans
Type: InventTrans Table
The inventTrans record that belongs to this record.
- _inventDim
Type: InventDim Table
The inventDim record that should be used to determine the financialInventDimId record.
- _inventTransOrigin
Type: InventTransOrigin Table
The inventTransOrigin record that belongs to this record.
- _costTransType
Type: InventCostTransType Enumeration
The costTransType record that should be used for this record.
- _leanCostingFacade
Type: LeanCostingFacadeBase Class
Return Value
Type: InventCostTrans Table
An inventCostTrans record.
Remarks
For revaluation records no inventTrans record is available. For revaluation records no inventDim record can be passed at the initialization. It will be set later.
For adjustments the costTransType record has to be passed in and reset after it was set in the inventCostTrans.initFromInventTrans method.