CustVendVoucher.post Method [AX 2012]

Creates and posts the customer or vendor voucher.

Syntax

public void post(
    LedgerVoucher _ledgerPostingJournal, 
    CustVendTrans custVendTrans, 
   [NoYes approval, 
    UnknownNoYes euroTriangulation, 
    boolean _withHoldTaxType, 
    boolean _useSubLedger])

Run On

Server

Parameters

  • _ledgerPostingJournal
    Type: LedgerVoucher Class
    The ledger posting journal to use for ledger posting.
  • custVendTrans
    Type: CustVendTrans Map
    The Map object that contains the value of vendor transaction or customer transaction.
  • approval
    Type: NoYes Enumeration
    The Boolean value that indicates the status for approval; optional.
  • _withHoldTaxType
    Type: boolean
    A Boolean value that indicates whether there is withholding tax; optional.
  • _useSubLedger
    Type: boolean
    A Boolean value that indicates whether the SubLedger is being used; optional.

Exceptions

Exception Condition
Error

Validation failed after the execution of the validate method.

Error

Validation failed during the validate method.

See Also

Reference

CustVendVoucher Class