CustVoucher.post Method [AX 2012]

Creates and posts the customer or vendor voucher.

Syntax

public void post(
    LedgerVoucher _ledgerPostingJournal, 
    CustVendTrans _custTrans, 
   [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.
  • _custTrans
    Type: CustVendTrans Map
    The map object holding the value of vendor transaction or customer transaction.
  • _approval
    Type: NoYes Enumeration
    The Boolean value to hold the status for approval; optional.
  • _withHoldTaxType
    Type: boolean
    The Boolean value that indicates whether there is withholding tax; optional.
  • _useSubLedger
    Type: boolean
    The Boolean value that indicates the SubLedger class is being used; optional.

Exceptions

Exception Condition
Error

The exception occurs when validation fails during validate.

See Also

Reference

CustVoucher Class