Share via


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.
  • _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.
  • _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.

See Also

Reference

BankCheqPrepCancelJourLineType Class