Share via


LedgerVoucher.createVoucherLinks Method [AX 2012]

Creates links in the LedgerTransVoucherLink table between the supplied parent information and the vouchers in the current instance of the LedgerVoucher class.

Syntax

public void createVoucherLinks(Voucher _parentVoucher, TransDate _parentTransDate)

Run On

Server

Parameters

Remarks

Call this method to create a relationship between two vouchers in the LedgerTrans table.

This method should be called in the database transaction that is used to create the LedgerTrans records.

This method will iterate through the collection of LedgerVoucherObject class objects (there is one LedgerVoucherObject object per voucher number) that are contained in the LedgerVoucher class and insert LedgerTransVoucherLink records for each voucher number.

The creation of the links has limited use in the application so this method should only be called if this functionality is required.

See Also

Reference

LedgerVoucher Class