ItEr46S12CUVisualizacionResponsabilidadesTRaballoNaPlanificacion: Not adding tasks that have no satisfied allocations
This commit is contained in:
parent
16b7bce31a
commit
6cc8a36860
2 changed files with 6 additions and 1 deletions
|
|
@ -474,4 +474,8 @@ public class Task extends TaskElement {
|
|||
return (subcontractedTaskData != null);
|
||||
}
|
||||
|
||||
public boolean hasSomeSatisfiedAllocation() {
|
||||
return !getSatisfiedResourceAllocations().isEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue