Fix error that is causing the taks to increase one day in length when moving
FEA: ItEr62OTS04PlanificacionHaciaAtras
This commit is contained in:
parent
0aa81a6109
commit
3d013b36c5
1 changed files with 2 additions and 3 deletions
|
|
@ -299,11 +299,10 @@ public abstract class TaskElement extends BaseEntity {
|
|||
capacity.minus(min(start.getEffortDuration(), capacity)));
|
||||
}
|
||||
resultDuration = resultDuration.plus(newStartDate.getEffortDuration());
|
||||
LocalDate resultDay = newStartDate.getDate().plusDays(
|
||||
numberOfDays);
|
||||
LocalDate resultDay = newStartDate.getDate().plusDays(numberOfDays);
|
||||
final EffortDuration capacity = calendar.getCapacityOn(PartialDay
|
||||
.wholeDay(resultDay));
|
||||
if (resultDuration.compareTo(capacity) >= 0) {
|
||||
if (resultDuration.compareTo(capacity) > 0) {
|
||||
resultDay = resultDay.plusDays(1);
|
||||
resultDuration = resultDuration.minus(capacity);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue