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.
Determines whether an asset transaction is eligible to be reversed or revoked.
Syntax
public container canTranBeReversed_ValueModels(
Voucher _voucher,
AssetTransDate _transDate,
boolean _revoke)
Run On
Called
Parameters
- _voucher
Type: Voucher Extended Data Type
The voucher number that corresponds to the transaction to find.
- _transDate
Type: AssetTransDate Extended Data Type
The transaction date of the transaction to reverse or revoke.
- _revoke
Type: boolean
The attribute that determines to whether to validate a reversal or a revoke.
Return Value
Type: container
A container of two Boolean fields and one string: The first Boolean is the nonReverseConditionFound field. true if the transaction can be reversed or revoked; otherwise, false. The second Boolean is the origTranFound field. true if a transaction that matches the specified voucher and transaction date was found; otherwise false. The string that is returned contains the error message to display to the user.
Remarks
This method first finds the original transaction that corresponds to the specified voucher and transaction date. If no transaction is found, then false, false, and an empty string are returned.
If an original transaction is found using that transaction, it then examines all transactions that occurred after it, chronologically. If there are any unreversed, unrevoked transactions, the one passed in cannot be reversed, and false, true, and the appropriate error message is returned. If the original transaction is found and no reversing issues are found, then true, true, and an empty string are returned.