Share via


TransactionReversal.initLedgerVoucher Method [AX 2012]

Instantiates a new LedgerVoucher, when it is implemented in a derived class.

Syntax

public LedgerVoucher initLedgerVoucher()

Run On

Called

Return Value

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

Remarks

This method must be implemented by derived classes, so that the LedgerVoucher is instantiated with the correct SysModule, such as SysModule::Cust.

If called directly from this base class, this method will throw an error indicating that it must be implemented by a derived class.

See Also

Reference

TransactionReversal Class