InventCostJournalIndirectCost.addTrans Method [AX 2012]
Calculates indirect costs and then writes the result to the ProdIndirectTrans table and adds entries to the ledger voucher for additional posting.
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 void addTrans(
CostCalcTransData _costCalcTransData,
InventTransId _inventTransId,
CostTransRefId _transRefId,
ProdTransRefType _transRefType,
[LedgerVoucher _ledgerVoucher,
Voucher _voucher,
TransDate _transDate,
boolean _physical,
DimensionDefault _defaultDimension,
boolean _postLedger,
boolean _stornoPhysical])
Microsoft Dynamics AX 2012 R2 (SYS)
public void addTrans(
CostCalcTransData _costCalcTransData,
InventTransId _inventTransId,
CostTransRefId _transRefId,
ProdTransRefType _transRefType,
[LedgerVoucher _ledgerVoucher,
Voucher _voucher,
TransDate _transDate,
boolean _physical,
DimensionDefault _defaultDimension,
boolean _postLedger,
boolean _stornoPhysical])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public void addTrans(
CostCalcTransData _costCalcTransData,
InventTransId _inventTransId,
CostTransRefId _transRefId,
ProdTransRefType _transRefType,
[LedgerVoucher _ledgerVoucher,
Voucher _voucher,
TransDate _transDate,
boolean _physical,
DimensionDefault _defaultDimension,
boolean _postLedger])
Microsoft Dynamics AX 2012 (FPK)
public void addTrans(
CostCalcTransData _costCalcTransData,
InventTransId _inventTransId,
CostTransRefId _transRefId,
ProdTransRefType _transRefType,
[LedgerVoucher _ledgerVoucher,
Voucher _voucher,
TransDate _transDate,
boolean _physical,
DimensionDefault _defaultDimension,
boolean _postLedger])
Microsoft Dynamics AX 2012 (SYS)
public void addTrans(
CostCalcTransData _costCalcTransData,
InventTransId _inventTransId,
CostTransRefId _transRefId,
ProdTransRefType _transRefType,
[LedgerVoucher _ledgerVoucher,
Voucher _voucher,
TransDate _transDate,
boolean _physical,
DimensionDefault _defaultDimension,
boolean _postLedger])
Run On
CalledParameters
- _costCalcTransData
- Type: CostCalcTransData Class
An instance of the CostCalcTransData class that has the data that is required for the indirect costs calculation.
- _inventTransId
- Type: InventTransId Extended Data Type
The inventory lot ID.
- _transRefId
- Type: CostTransRefId Extended Data Type
The transaction reference identifier.
- _transRefType
- Type: ProdTransRefType Enumeration
The transaction reference type.
- _ledgerVoucher
- Type: LedgerVoucher Class
An instance of the LedgerVoucher class.
- _voucher
- Type: Voucher Extended Data Type
A voucher number.
- _transDate
- Type: TransDate Extended Data Type
A transaction date.
- _physical
- Type: boolean
A Boolean value that specifies whether the transaction is physical.
- _defaultDimension
- Type: DimensionDefault Extended Data Type
A dimension to use instead of those that are defined in the costing sheet.
- _postLedger
- Type: boolean
- _stornoPhysical
- Type: boolean
Community Additions
ADD
Show:
Note