LedgerVoucher.checkVoucher Method [AX 2012]

Validates an instance of the LedgerVoucherObject class passed in as a parameter.

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 boolean checkVoucher(
            Voucher _voucher, 
            TransDate _accountingDate, 
            CurrentOperationsTax _postingLayer)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean checkVoucher(
            Voucher _voucher, 
            TransDate _accountingDate, 
            CurrentOperationsTax _postingLayer)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean checkVoucher(
            Voucher _voucher, 
            TransDate _accountingDate, 
            OperationsTax _postingLayer)

  Microsoft Dynamics AX 2012 (FPK)
          public boolean checkVoucher(
            Voucher _voucher, 
            TransDate _accountingDate, 
            OperationsTax _postingLayer)

  Microsoft Dynamics AX 2012 (SYS)
          public boolean checkVoucher(
            Voucher _voucher, 
            TransDate _accountingDate, 
            OperationsTax _postingLayer)

Run On

Server

Parameters

  • _voucher
    Type: Voucher Extended Data Type
    The voucher number of the LedgerVoucherObject object on which to perform the validation.

Return Value

Type: boolean
true if no errors were found; otherwise, false.

See Also

Reference

LedgerVoucher Class