[Bug #1300] Updated intended resources per day after consolidation is added or removed
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
1bfdd4f4aa
commit
85ce192e06
2 changed files with 15 additions and 0 deletions
|
|
@ -2198,4 +2198,8 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
return false;
|
||||
}
|
||||
|
||||
public void resetIntendedIntendedResourcesPerDayWithNonConsolidated() {
|
||||
intendedResourcesPerDay = getNonConsolidatedResourcePerDay();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,6 +221,15 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
} else {
|
||||
reassignAll(end, allResourceAllocations);
|
||||
}
|
||||
|
||||
resetIntendedResourcesPerDayWithNonConsolidated(allResourceAllocations);
|
||||
}
|
||||
|
||||
private void resetIntendedResourcesPerDayWithNonConsolidated(
|
||||
Set<ResourceAllocation<?>> allResourceAllocations) {
|
||||
for (ResourceAllocation<?> resourceAllocation : allResourceAllocations) {
|
||||
resourceAllocation.resetIntendedIntendedResourcesPerDayWithNonConsolidated();
|
||||
}
|
||||
}
|
||||
|
||||
private void withDetachOnDayAssignmentRemoval(
|
||||
|
|
@ -326,6 +335,8 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
withDetachOnDayAssignmentRemoval(allResourceAllocations);
|
||||
|
||||
reassignAll(task.getIntraDayEndDate(), allResourceAllocations);
|
||||
|
||||
resetIntendedResourcesPerDayWithNonConsolidated(allResourceAllocations);
|
||||
}
|
||||
|
||||
private void updateConsolidationInAdvanceIfIsNeeded() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue