Share via


VendVoucher.post Method [AX 2012]

Creates and posts the customer or vendor voucher.

Syntax

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

See Also

Reference

VendVoucher Class