LedgerPostingController.addTrans Method [AX 2012]
Adds a posting transaction to the current object.
Syntax
public void addTrans(LedgerVoucherTransObject _postingTrans)
Run On
Called
Parameters
- _postingTrans
Type: LedgerVoucherTransObject Class
Exceptions
Exception | Condition |
---|---|
Error | The _postingTrans parameter is null. -or- The posting journal is not set. -or- The posting reference is not set. |
Remarks
A minimum of two posting transactions are required to use the LedgerPostingController class.