Share via


LedgerPostingController.addTrans Method [AX 2012]

Adds a posting transaction to the current object.

Syntax

public void addTrans(LedgerVoucherTransObject _postingTrans)

Run On

Called

Parameters

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.

See Also

Reference

LedgerPostingController Class