R31398-2 Project Task - Recalculate Project Task Resources Fields
| Code | R31398-2 |
| Entity | Projects.ProjectTasks Entity |
| Name | RecalculateProjectTaskResourcesFields |
| Attribute | ProjectTaskResource.ResourceUsageHours,
ProjectTaskResource.TaskTotalCost, ProjectTaskResource.ResourceUsagePercent |
| Layer | Front-End |
| Events | AttributeChanged(PlannedDurationHours) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if (ProjectTask.Resources.Any()) foreach in Resources: res.ResourceUsageHours = PlannedDurationHours * res.ResourceUsagePercent; if (res.PerUseCost != null) res.TaskTotalCost = (res.ResourceUsageHours * res.CostPerHour) + res.PerUseCost.Value; if (d.PlannedDurationHours == 0) res.ResourceUsagePercent = 0; |
| Description | |
| Message | |
| Version | Introduced: 21
Updated: - |
| Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.