LedgerVoucherObject::newVoucher Method [AX 2012]

Initializes a new instance of the LedgerVoucherObject class using the specified values.

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
          client server public static LedgerVoucherObject newVoucher(
            Voucher _voucher, 
           [TransDate _transDate, 
            SysModule _sysModule, 
            LedgerTransType _ledgerTransType, 
            NoYes _isCorrectionDefault, 
            CurrentOperationsTax _operationsTax, 
            DocumentNum _documentNum, 
            DocumentDate _documentDate, 
            AcknowledgementDate _acknowledgementDate, 
            boolean _checkVoucher])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static LedgerVoucherObject newVoucher(
            Voucher _voucher, 
           [TransDate _transDate, 
            SysModule _sysModule, 
            LedgerTransType _ledgerTransType, 
            NoYes _isCorrectionDefault, 
            CurrentOperationsTax _operationsTax, 
            DocumentNum _documentNum, 
            DocumentDate _documentDate, 
            AcknowledgementDate _acknowledgementDate, 
            boolean _checkVoucher])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static LedgerVoucherObject newVoucher(
            Voucher _voucher, 
           [TransDate _transDate, 
            SysModule _sysModule, 
            LedgerTransType _ledgerTransType, 
            NoYes _isCorrectionDefault, 
            OperationsTax _operationsTax, 
            DocumentNum _documentNum, 
            DocumentDate _documentDate, 
            AcknowledgementDate _acknowledgementDate])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static LedgerVoucherObject newVoucher(
            Voucher _voucher, 
           [TransDate _transDate, 
            SysModule _sysModule, 
            LedgerTransType _ledgerTransType, 
            NoYes _isCorrectionDefault, 
            OperationsTax _operationsTax, 
            DocumentNum _documentNum, 
            DocumentDate _documentDate, 
            AcknowledgementDate _acknowledgementDate])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static LedgerVoucherObject newVoucher(
            Voucher _voucher, 
           [TransDate _transDate, 
            SysModule _sysModule, 
            LedgerTransType _ledgerTransType, 
            NoYes _isCorrectionDefault, 
            OperationsTax _operationsTax, 
            DocumentNum _documentNum, 
            DocumentDate _documentDate, 
            AcknowledgementDate _acknowledgementDate])

Run On

Called

Parameters

  • _checkVoucher
    Type: boolean
    A value that indicates whether to check the subledger voucher; optional.

Return Value

Type: LedgerVoucherObject Class
A new instance of the LedgerVoucherObject class.

Remarks

The newReference method is an updated version of this method.

See Also

Reference

LedgerVoucherObject Class