[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:
parent
7186362a3b
commit
b6f76b9ee4
2 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -253,6 +253,7 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
Arrays.asList(resourceAllocation
|
||||
.asResourcesPerDayModification()))
|
||||
.untilAllocating(hours(pendingHours));
|
||||
date.plus(1);
|
||||
task.setIntraDayEndDate(date);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue