erp.type | erp.entity |
---|---|
business-rule |
Finance.Assets.Depreciations |
+-------------------+--------------------------------------------------------------------------------------------------+
| Code | R27169 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Entity | @Finance.Assets.Depreciations |
+-------------------+--------------------------------------------------------------------------------------------------+
| Name | CheckStartDate |
+-------------------+--------------------------------------------------------------------------------------------------+
| Attribute | StartDate |
+-------------------+--------------------------------------------------------------------------------------------------+
| Layer | Back-End |
+-------------------+--------------------------------------------------------------------------------------------------+
| Events | Planned + |
+-------------------+--------------------------------------------------------------------------------------------------+
| Modify | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | StartDate == IsFirstDayOfAMonth |
+-------------------+--------------------------------------------------------------------------------------------------+
| Description | On any document status change, the system checks that the StartDate is a first day of a month. |
| | For example "2020/12/01" - this is a correct start date. "2020/12/02" is an incorrect |
| | StartDate |
+-------------------+--------------------------------------------------------------------------------------------------+
| Message | "The start date or the end date in depreciation '{0}' is invalid. The start date must be |
| | first day of month and the end date must be last day of month.", [DocumentText] |
| |
|
| |
|
| |
|
| | Message also used in: |
| |
|
| | R27171 Depreciation - Check End Date |
+-------------------+--------------------------------------------------------------------------------------------------+
| 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.