Share via


LedgerVoucherList.add Method [AX 2012]

Adds a posting reference to the collection.

Syntax

public boolean add(LedgerVoucherObject _postingReference)

Run On

Called

Parameters

Return Value

Type: boolean
true if successful; otherwise, false.

Exceptions

Exception Condition
Error

The reference number is an empty string or the accounting date is an empty date.

Error

The reference number is an empty string.

See Also

LedgerVoucherList Class

LedgerVoucherObject Class