Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- _parentVoucher
Type: Voucher Extended Data Type
The voucher number of the parent.
- _parentTransDate
Type: TransDate Extended Data Type
The transaction date of the parent.
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.