R30485-1 SalesPerson - Calculate Is Active
Code | 30485-1 |
Entity | Crm.SalesPersons Entity |
Name | CalculateIsActive |
Attribute | IsActive |
Layer | Front-End |
Events | AttributeChanged(ContractStartDate, ContractEndDate) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | IF(AttributeChanged = ContractStartDate AND ContractStartDate!=null)
IsActive=true; IF(AttributeChanged = ContractEndDate AND ContractEndDate!=null) IsActive=false; |
Description | When Contract Start Date is changed to a not null datetime, IsActive should be changed to true. When Contract End Date is changed to a not null datetime, IsActive should be changed to false. |
Message | |
Version | Introduced: 2020.1 |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.