TransactionReversalTrans::findLastAssetDepBookTrans Method
Finds and returns the last asset depreciation book transaction that is associated with the specified asset depreciation book transaction if it has been reversed.
Syntax
client server public static AssetDepBookTrans findLastAssetDepBookTrans(AssetDepBookTrans assetDepBookTransLocal)
Run On
Called
Parameters
- assetDepBookTransLocal
Type: AssetDepBookTrans Table
The current asset depreciation book transaction.
Return Value
Type: AssetDepBookTrans Table
The last related asset depreciation book transaction; otherwise the specified asset depreciation book transaction.
Remarks
Use the passed transaction to first find the related transaction reversal record. If one is found, use the value in the trace number field to find the transaction with the same trace number that is marked as the last transaction. Finally, use the referenced record ID from the transaction reversal record to look up the actual related last asset depreciation book transaction record.