CustVoucher.post Method [AX 2012]

Creates and posts the customer or vendor voucher.

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.
_euroTriangulation
Type: UnknownNoYes Enumeration
The Europe triangulation value in drop-down list; 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.

ExceptionCondition
Error

The exception occurs when validation fails during validate.

Community Additions

ADD
Show: