PurchInvoiceJournalPost.createCustVendLedgerVoucherObject Method [AX 2012]

Creates the LedgerVoucherObject for posting customer and vendor transactions.

protected LedgerVoucherObject createCustVendLedgerVoucherObject(LedgerVoucherObject _invoiceLedgerVoucherObject)

Run On

Server

Parameters

_invoiceLedgerVoucherObject
Type: LedgerVoucherObject Class
The posted ledger voucher object used for invoice transaction.

Return Value

Type: LedgerVoucherObject Class
An instance of the LedgerVoucherObject that uses the same voucher number as the one used for the invoice posting.

ExceptionCondition
Error

An exception is thrown if the posted invoice ledger voucher object is null.

Community Additions

ADD
Show: