[Bug #996] Update the end date of the task correctly.

The new date is equal to the new finish of task more one day.
So that the end date is not included in the reassigning of hours.

FEA: ItEr74S04BugFixing
This commit is contained in:
Susana Montes Pedreira 2011-05-03 18:30:31 +02:00
parent 7186362a3b
commit b6f76b9ee4
2 changed files with 5 additions and 0 deletions

View file

@ -187,6 +187,10 @@ public class IntraDayDate implements Comparable<IntraDayDate> {
return getDate().plusDays(1);
}
public void plus(int days) {
this.date = this.date.plusDays(days);
}
public int compareTo(LocalDate other) {
int result = this.date.compareTo(other);
if (result != 0) {

View file

@ -253,6 +253,7 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
Arrays.asList(resourceAllocation
.asResourcesPerDayModification()))
.untilAllocating(hours(pendingHours));
date.plus(1);
task.setIntraDayEndDate(date);
}
} else {