VendVoucher.post Method [AX 2012]

Creates and posts the customer or vendor voucher.

public void post(
    LedgerVoucher _ledgerPostingJournal, 
    CustVendTrans _vendTrans, 
   [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.
_vendTrans
Type: CustVendTrans Map
_approval
Type: NoYes Enumeration
_euroTriangulation
Type: UnknownNoYes Enumeration
_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.

ExceptionCondition
Error

Validation failed after the execution of the validate method.

Community Additions

ADD
Show: