R27219 Depreciation - Check Depreciation Range Specified Assets

Code R27219
Entity Finance.Assets.Depreciations Entity
Name CheckDepreciationRangeSpecifiedAssets
Attribute DepreciationRange
Layer Back-End
Events Planned +
Modify NO
Action Validate that:

If (DepreciationRange == S)

Depreciation.DepreciationAssets.Count > 0
Description On document state change to Planned status or higher, if the Depreciation Range is "Specified Assets", the system validates that there are rows in the Depreciation Assets table (at least one). When the Depreciation Range is "Specified Assets", that means that the user is entering the asset or assets for the current document.
Message "The depreciation range for depreciation '{0}' is 'Specified assets', but there are no records in the 'Depreciation assets' table.", [DocumentText]
Introduced In Version 2017
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.