Use private method for dividing.
FEA: ItEr75S27PerProjectDashboard
This commit is contained in:
parent
4bb50efd5e
commit
0aabcd8680
1 changed files with 2 additions and 1 deletions
|
|
@ -159,11 +159,12 @@ public class PlanningData extends BaseEntity {
|
|||
private BigDecimal calculateTheoreticalAdvanceByNumHoursForCriticalPath(
|
||||
List<Task> criticalPath, Date limit) {
|
||||
int theoreticalNumHours = 0, totalNumHours = 0;
|
||||
|
||||
for (Task each: criticalPath) {
|
||||
theoreticalNumHours += each.getTheoreticalCompletedHoursUntilDate(limit);
|
||||
totalNumHours += each.getTotalHours();
|
||||
}
|
||||
return new BigDecimal(theoreticalNumHours).divide(new BigDecimal(totalNumHours));
|
||||
return divide(new BigDecimal(theoreticalNumHours), totalNumHours);
|
||||
}
|
||||
|
||||
private BigDecimal calculateTheoreticalAdvanceByDurationForCriticalPath(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue