ItEr59S04ValidacionEProbasFuncionaisItEr58S04: [Bug #475] Fixed advance consolidation reassignments when consolidated date is before task start date.
This commit is contained in:
parent
bcf6c17d39
commit
6f17f546b6
1 changed files with 9 additions and 4 deletions
|
|
@ -199,13 +199,18 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
.addConsolidatedValue((CalculatedConsolidatedValue) value);
|
||||
}
|
||||
|
||||
LocalDate startInclusive = value.getDate().plusDays(1);
|
||||
LocalDate taskStartDate = LocalDate.fromDateFields(task
|
||||
.getStartDate());
|
||||
if (startInclusive.compareTo(taskStartDate) < 0) {
|
||||
startInclusive = taskStartDate;
|
||||
}
|
||||
LocalDate endExclusive = LocalDate
|
||||
.fromDateFields(task.getEndDate());
|
||||
|
||||
Set<ResourceAllocation<?>> allResourceAllocations = task
|
||||
.getAllResourceAllocations();
|
||||
for (ResourceAllocation<?> resourceAllocation : allResourceAllocations) {
|
||||
LocalDate startInclusive = value.getDate().plusDays(1);
|
||||
LocalDate endExclusive = LocalDate.fromDateFields(task
|
||||
.getEndDate());
|
||||
|
||||
for (DayAssignment dayAssignment : resourceAllocation
|
||||
.getAssignments()) {
|
||||
if (dayAssignment.getDay().compareTo(startInclusive) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue