Share via


TransactionReversal_Ledger.initLedgerVoucher Method [AX 2012]

Creates a new instance of the LedgerVoucher class, when it is implemented in a derived class.

Syntax

public LedgerVoucher initLedgerVoucher()

Run On

Called

Return Value

Type: LedgerVoucher Class
A new instance of the LedgerVoucher class, when this method is implemented in a derived class.

Remarks

This method must be implemented by derived classes, so that the LedgerVoucher class is created by using the correct SysModule enumeration type, such as the SysModule::Cust enumeration value. If called directly from this base class, this method will throw an error that indicates that it must be implemented by a derived class.

See Also

Reference

TransactionReversal_Ledger Class