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.
Validates all transactions for reversal or revoke based on type and status.
Syntax
public container checkAssetStatusApplicable(
Voucher _voucher,
AssetTransDate _transDate,
AssetJournalId _journalNumber,
LineNum _journalLineNum,
boolean _revoke)
Run On
Called
Parameters
- _voucher
Type: Voucher Extended Data Type
The voucher number of the transactions to reverse or revoke; optional
- _transDate
Type: AssetTransDate Extended Data Type
The transaction date of the transactions to reverse or revoke.
- _journalNumber
Type: AssetJournalId Extended Data Type
The journal number of the depreciation book transactions to reverse or revoke; optional
- _journalLineNum
Type: LineNum Extended Data Type
The journal line number of the depreciation book transactions to reverse or revoke; optional
- _revoke
Type: boolean
A Boolean value that specifies whether the transactions will be revoked or reversed.
Return Value
Type: container
A container that holds a Boolean value and a string.
The Boolean value is set to true if all asset statuses found are acceptable to reverse or revoke the transactions; otherwise, false.
The error message states why the transaction could not be reversed or revoked.
Remarks
This method loops through select transactions in all the value models and depreciation books of the asset. It then verifies that the asset status is appropriate for the transaction type that will be reversed or revoked. The transactions are selected based on the voucher and transaction date passed in. Or, for the asset depreciation books that do not have voucher numbers, they are selected based on journal number and journal line number.