ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Completing condition
This commit is contained in:
parent
953531638c
commit
7af65bb333
1 changed files with 10 additions and 1 deletions
|
|
@ -65,7 +65,16 @@ public class AggregateOfResourceAllocations {
|
|||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return resourceAllocations.isEmpty();
|
||||
return resourceAllocations.isEmpty() || allEmpty();
|
||||
}
|
||||
|
||||
private boolean allEmpty() {
|
||||
for (ResourceAllocation<?> each : resourceAllocations) {
|
||||
if (each.hasAssignments()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public List<ResourceAllocation<?>> getAllocationsSortedByStartDate() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue