InventCostTrans.initFromInventTrans Method
Initializes an inventCostTrans record from an inventTrans and an inventTransOrigin record.
Syntax
private void initFromInventTrans(
InventTrans _inventTrans,
LeanCostingFacadeBase _leanCostingFacade,
[InventTransOrigin _inventTransOrigin])
Run On
Called
Parameters
- _inventTrans
Type: InventTrans Table
The inventTrans record from which the data should be taken.
- _leanCostingFacade
Type: LeanCostingFacadeBase Class
- _inventTransOrigin
Type: InventTransOrigin Table
The inventTransOrigin record from which the data should be taken.
Remarks
Sets all InventTransId, InventTransIdReturn, ItemId, TransRefId, TransType and Module fields for an inventCostTransRecord from a given inventTrans and inventTransOrigin record.
The module field is set according to the inventTransType.