TransactionReversalTrans::findLastAssetGroupDepBookTrans_IN 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 AssetGroupDepBookTrans_IN findLastAssetGroupDepBookTrans_IN(AssetGroupDepBookTrans_IN assetGroupDepBookTransLocal)
Run On
Called
Parameters
- assetGroupDepBookTransLocal
Type: AssetGroupDepBookTrans_IN Table
The current asset depreciation book transaction.
Return Value
Type: AssetGroupDepBookTrans_IN 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.