AssetDepTransMap_JP::calcAccumulatedDepAmountMstInCurYear Method [AX 2012]
Calculates the accumulated depreciation amount in the accounting currency, from the first day of the current year to a specified date.
client server public static AssetAmount calcAccumulatedDepAmountMstInCurYear(
AssetDepBookMap_JP _assetDepBookMap,
AssetTableInterval _assetTableInterval,
AssetTransDate _toDate,
[RefRecId _assetDocumentEntryRecId])
Run On
CalledParameters
- _assetDepBookMap
- Type: AssetDepBookMap_JP Map
A buffer of a table that is mapped to the AssetDepBookMap_JP map.
- _assetTableInterval
- Type: AssetTableInterval Class
An instance of an AssetTableInterval subclass.
- _toDate
- Type: AssetTransDate Extended Data Type
The to date.
- _assetDocumentEntryRecId
- Type: RefRecId Extended Data Type
Return Value
Type: AssetAmount Extended Data TypeThe accumulated depreciation amount in the accounting currency.
The fixed asset recapture function creates two depreciation adjustment transactions when the additional acquisition is performed. One is the adjustment for the current year, and the other is for previous years. The transaction date of each of these two adjustment transactions is the same as the acquisition date. However, the adjustment transaction for previous years should be skipped for the calculation of this method, because it is not for current year.
Show: