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
- _voucher
Type: Voucher Extended Data Type
The subledger voucher.
- _transDate
Type: TransDate Extended Data Type
The accounting date; optional.
- _sysModule
Type: SysModule Enumeration
The module; optional.
- _ledgerTransType
Type: LedgerTransType Enumeration
The transaction type; optional.
- _isCorrectionDefault
Type: NoYes Enumeration
The correction default; optional.
- _operationsTax
Type: CurrentOperationsTax Enumeration
The posting layer; optional.
- _documentNum
Type: DocumentNum Extended Data Type
The document number; optional.
- _documentDate
Type: DocumentDate Extended Data Type
The document date; optional.
- _acknowledgementDate
Type: AcknowledgementDate Extended Data Type
The ackknowledgement date; optional.
- _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.