Share via


TransactionReversal_Asset.checkVoucherPostingTypesApplicable Method [AX 2012]

Checks for vendor or customer transactions for the given voucher number and transaction date.

Syntax

public container checkVoucherPostingTypesApplicable(Voucher _voucher, TransDate _transDate)

Run On

Called

Parameters

Return Value

Type: container
A container that has a Boolean value, a string that contains an error message, and the offending ledger posting type.
The Boolean value is set to true if no transactions that match the voucher and transaction date are found; otherwise, false.
The string contains a message that states what type of transaction was found.
The type is the posting type of the transaction that cannot be reversed.

Remarks

This routine will determine whether there are any customer or vendor transactions that are associated with the voucher. If any are found, an error message is returned because asset transactions that originated from customers or vendors can only be reversed from that originating program.

See Also

Reference

TransactionReversal_Asset Class