R30485-2 SalesPerson - Calculate Contract Dates

Code 30485-2
Entity Crm.SalesPersons Entity
Name CalculateContractDates
Attribute ContractStartDate,ContractEndDate
Layer Front-End
Events AttributeChanged(IsActive)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action if (IsActive) ContractStartDate = DateTime.Today; else ContractEndDate = DateTime.Today;
Description When IsActive is changed to true, Contract Start Date is set to current date. When IsActive is chnaged to false, Contract End Date is set to current date.
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.