Share via


TransactionReversal_Ledger_InfAdj_MX.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 value, such as the SysModule::Cust enumeration value. If this method is called directly from the base class, this method will throw an error that indicates that it must be implemented by a derived class.

See Also

Reference

TransactionReversal_Ledger_InfAdj_MX Class