AssetDepBookTableDepConv_MidMonth_1st::calcPeriodMidMonth_1st Method [AX 2012]
Calculates the depreciation amount based on the MidMonth_1st convention rule for last period.
Syntax
client server public static AssetDepreciationTime calcPeriodMidMonth_1st(
AssetDepreciationBookId _assetDepreciationBookId,
TransDate _transDate,
AssetTableInterval _assetTableInterval,
AssetDepBook _assetDepBook,
TransDate _depreciationLastRunDate)
Run On
Called
Parameters
- _assetDepreciationBookId
Type: AssetDepreciationBookId Extended Data Type
An AssetDepreciationBookId for which depreciation must be calculated.
- _transDate
Type: TransDate Extended Data Type
A depreciation transaction date.
- _assetTableInterval
Type: AssetTableInterval Class
An AssetTableInterval buffer that is used to check mid of period for fiscal year.
- _assetDepBook
Type: AssetDepBook Table
An AssetDepBook table buffer that is used to calculate the value.
- _depreciationLastRunDate
Type: TransDate Extended Data Type
The date on which the last depreciation was posted to journal.
Return Value
Type: AssetDepreciationTime Extended Data Type
The number of periods based on MidMonth_1st convention rule.