erp.type | erp.entity |
---|---|
business-rule |
Finance.Assets.Depreciations |
+-------------------+--------------------------------------------------------------------------------------------------+
| Code | R27183 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Entity | @Finance.Assets.Depreciations |
+-------------------+--------------------------------------------------------------------------------------------------+
| Name | CheckDepreciationRangeAllAssets |
+-------------------+--------------------------------------------------------------------------------------------------+
| Attribute | DepreciationRange |
+-------------------+--------------------------------------------------------------------------------------------------+
| Layer | Back-End |
+-------------------+--------------------------------------------------------------------------------------------------+
| Events | Planned + |
+-------------------+--------------------------------------------------------------------------------------------------+
| Modify | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | If (DepreciationRange == A) |
| |
|
| | Depreciation.DepreciationAssets.Count = 0 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Description | On document state change to Planned status or higher, if the Depreciation Range is "All |
| | Assets", the system validates that there are no rows in the Depreciation Assets table. When the |
| | Depreciation Range is "All Assets", this means that the system will automatically extract all |
| | assets which have to be depreciated. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Message | "The depreciation range for depreciation '{0}' is 'All assets', but there are records in |
| | the 'Depreciation assets' table.", [DocumentText] |
+-------------------+--------------------------------------------------------------------------------------------------+
| Introduced In | 2017 |
| Version | |
+-------------------+--------------------------------------------------------------------------------------------------+
| Revocable | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.