Compartir a través de


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

  • _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.
  • _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.

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.

See Also

Reference

InventCostTrans Table