BankCheqPrepCancelJourLineType::construct Method [AX 2012]
Initializes a new instance of the BankCheqPrepCancelJourLineType class.
Syntax
client server public static BankCheqPrepCancelJourLineType construct(
CustVendTrans _custVendTrans,
BankChequeTable _bankChequeToCancel,
BankAccountTrans _bankAccountTansToCancel,
RefRecId _numberSequenceTableID,
LedgerJournalId _journalNum,
LedgerJournalType _journalType,
Voucher _paymVoucher,
ReasonComment _cancelReasonComment,
TransDate _transDate,
ReasonRefRecID _reasonTableRefRecID,
boolean _reconcile)
Run On
Called
Parameters
- _custVendTrans
Type: CustVendTrans Map
The CustVendTrans record for the cheque that is being canceled.
- _bankChequeToCancel
Type: BankChequeTable Table
The BankChequeTable record that is being canceled.
- _bankAccountTansToCancel
Type: BankAccountTrans Table
The BankAccountTrans record for the cheque that is being canceled.
- _numberSequenceTableID
Type: RefRecId Extended Data Type
The reference to the NumberSequenceTable table to generate the new voucher from.
- _journalNum
Type: LedgerJournalId Extended Data Type
The journal number of the journal entry.
- _journalType
Type: LedgerJournalType Enumeration
The journal type of the journal entry.
- _paymVoucher
Type: Voucher Extended Data Type
The voucher number for the journal entry.
- _cancelReasonComment
Type: ReasonComment Extended Data Type
The ReasonComment value for the journal entry.
- _transDate
Type: TransDate Extended Data Type
The date of the journal entry.
- _reasonTableRefRecID
Type: ReasonRefRecID Extended Data Type
The reference to the ReasonTableRef table for the journal entry.
- _reconcile
Type: boolean
A Boolean variable that indicates whether the cheque must be reconciled at posting.
Return Value
Type: BankCheqPrepCancelJourLineType Class
A new instance of the BankCheqPrepCancelJourLineType class.
Exceptions
Exception | Condition |
---|---|
Error | The method was called by using an invalid cheque. |