Share via


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

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.

See Also

Reference

LedgerVoucher Class