erp.type | erp.entity |
---|---|
business-rule |
Finance.Assets.Depreciations |
+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R28206 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Finance.Assets.Depreciations |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | LineAssetEnterpriseCompany |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | Line.Asset |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Releasing + |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | If (DepreciationAsset.Asset.EnterpriseCompany != null) |
| |
|
| | DepreciationAsset.Asset.EnterpriseCompany == Depreciation.EnterpriseCompany |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | It would not be correct to use assets for enterprise company, different than the enterprise |
| | company of the Depreciation. An asset may be part of only one company and depreciations from |
| | other companies should not exist. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | "Asset '{Asset.Code}' from {DocumentText} lines is defined for enterprise companies other |
| | than that specified in the document." |
| |
|
| |
|
| |
|
| | NOTE: The message is repeated for each asset that breaks the validation! |
| |
|
| | Sort Messages By Attribute: Asset.Code |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2018 |
| Version | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.