[Bug #760] Fix bug
In case of not satisfying the allocation the proper date must be returned. FEA: ItEr66S04BugFixing
This commit is contained in:
parent
ef092794a0
commit
07a30262bf
1 changed files with 3 additions and 1 deletions
|
|
@ -353,7 +353,9 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
IntraDayDate result = allocator
|
||||
.untilAllocating(hours(hoursToAllocate));
|
||||
if (result == null) {
|
||||
return task.getIntraDayEndDate();
|
||||
// allocation could not be done
|
||||
return direction == Direction.FORWARD ? task
|
||||
.getIntraDayEndDate() : task.getIntraDayStartDate();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue