R30433-6 Activity - Set End Time
| Code | 30433-6 |
| Entity | General.Activities.Activities Entity |
| Name | SetEndTime |
| Attribute | EndTime |
| Layer | Front-End |
| Events | AttributeChanged(PlannedDurationMinutes) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | IF(Activity.State == DocumentState.New)
if (StartTime is not null && PlannedDurationMinutes is not null) { if (EndTime != StartTime.AddMinutes(PlannedDurationMinutes)) EndTime = StartTime.AddMinutes(PlannedDurationMinutes); } |
| Description | Calculates End Time from Start Time and Planned Duration Minutes. |
| 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.