ItEr29S06CUAsignacionGrupoRecursosAPlanificacionItEr28S06: Checking if workable hours is zero. Then returning zero
This commit is contained in:
parent
c33cd3daa6
commit
2ac95fa1c2
1 changed files with 3 additions and 0 deletions
|
|
@ -384,6 +384,9 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
* entry.getValue().size();
|
||||
sumTotalHours += getAssignedHours(entry.getValue());
|
||||
}
|
||||
if (sumWorkableHours == 0) {
|
||||
return ResourcesPerDay.amount(0);
|
||||
}
|
||||
return ResourcesPerDay.calculateFrom(
|
||||
sumTotalHours, sumWorkableHours);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue