ItEr46S12CUVisualizacionResponsabilidadesTRaballoNaPlanificacion: Not adding tasks that have no satisfied allocations

This commit is contained in:
Óscar González Fernández 2010-02-03 21:05:11 +01:00
parent 16b7bce31a
commit 6cc8a36860
2 changed files with 6 additions and 1 deletions

View file

@ -474,4 +474,8 @@ public class Task extends TaskElement {
return (subcontractedTaskData != null);
}
public boolean hasSomeSatisfiedAllocation() {
return !getSatisfiedResourceAllocations().isEmpty();
}
}

View file

@ -293,7 +293,8 @@ public class AdvancedAllocationTabCreator {
private void addAllocations(Order order,
List<AllocationInput> result, TaskElement taskElement) {
if (taskElement instanceof Task) {
if (taskElement instanceof Task
&& ((Task) taskElement).hasSomeSatisfiedAllocation()) {
result.add(createAllocationInputFor(order, (Task) taskElement));
}
if (!taskElement.isLeaf()) {