LedgerVoucher.findReference Method [AX 2012]
Finds and returns the LedgerVoucherObject object that matches the specified parameters.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
public LedgerVoucherObject findReference(
Voucher _subledgerVoucher,
TransDate _accountingDate,
CurrentOperationsTax _postingLayer)
Microsoft Dynamics AX 2012 R2 (SYS)
public LedgerVoucherObject findReference(
Voucher _subledgerVoucher,
TransDate _accountingDate,
CurrentOperationsTax _postingLayer)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public LedgerVoucherObject findReference(
Voucher _subledgerVoucher,
TransDate _accountingDate,
OperationsTax _postingLayer)
Microsoft Dynamics AX 2012 (FPK)
public LedgerVoucherObject findReference(
Voucher _subledgerVoucher,
TransDate _accountingDate,
OperationsTax _postingLayer)
Microsoft Dynamics AX 2012 (SYS)
public LedgerVoucherObject findReference(
Voucher _subledgerVoucher,
TransDate _accountingDate,
OperationsTax _postingLayer)
Run On
Server
Parameters
- _subledgerVoucher
Type: Voucher Extended Data Type
The subledger voucher of the LedgerVoucherObject object to find.
- _accountingDate
Type: TransDate Extended Data Type
The accounting date of the LedgerVoucherObject object to find.
- _postingLayer
Type: CurrentOperationsTax Enumeration
The posting layer of the LedgerVoucherObject object to find.
Return Value
Type: LedgerVoucherObject Class
The LedgerVoucherObject object; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).
Remarks
The last values are updated if the object is found.