Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- _voucher
Type: Voucher Extended Data Type
The voucher number.
- _transDate
Type: TransDate Extended Data Type
The transaction date.
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.