AssetGroupBookSetup::checkDepreciationConvention Method
Determines whether at least one transaction in the AssetGroupBookSetup table is related to a specified depreciation convention.
Syntax
client server public static boolean checkDepreciationConvention(AssetBookId _bookId, [AssetDepreciationConvention _depreciationConvention])
Run On
Called
Parameters
- _bookId
Type: AssetBookId Extended Data Type
The ID for the asset group value model.
- _depreciationConvention
Type: AssetDepreciationConvention Enumeration
The depreciation convention of the asset group; optional.
Return Value
Type: boolean
true if asset group records are found; otherwise, false.
Remarks
The _depreciationConvention parameter is optional. If a value is not specified, the method searches for at least one record that has a depreciation convention other than AssetDepreciationConvention::None. If a given depreciation convention differs from AssetDepreciationConvention::None, the method searches for at least one record in the AssetGroupBookSetup table for this depreciation convention.