Small code refactor. With these changes, the code runs exactly the same way.
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
8b0b11397f
commit
b24ee03837
1 changed files with 2 additions and 7 deletions
|
|
@ -203,15 +203,10 @@ public class TaskSource extends BaseEntity {
|
|||
OrderElement orderElement) {
|
||||
task.setName(orderElement.getName());
|
||||
Date orderInitDate = orderElement.getOrder().getInitDate();
|
||||
if (task.getStartDate() == null && orderInitDate != null) {
|
||||
if (task.getIntraDayStartDate() == null && orderInitDate != null) {
|
||||
task.setStartDate(orderInitDate);
|
||||
}
|
||||
if (task.getEndDate() == null) {
|
||||
task.initializeDatesIfNeeded();
|
||||
}
|
||||
if (!hasSomeAllocationDone(task)) {
|
||||
task.initializeDatesIfNeeded();
|
||||
}
|
||||
task.initializeDatesIfNeeded();
|
||||
task.updateDeadlineFromOrderElement();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue