log.debug(this.toString());
}
readTotalDurations();
refreshOrderPositionReferences();
// Now update the status: bookable for time sheets:
final TimesheetDao timesheetDao = Registry.instance().getDao(TimesheetDao.class);
final TimesheetDO timesheet = new TimesheetDO();
for (final TaskDO task : taskList) {
node = taskMap.get(task.getId());
timesheet.setTask(task);
final boolean bookable = timesheetDao.checkTaskBookable(timesheet, null, OperationType.INSERT, false);
node.bookableForTimesheets = bookable;
}
log.info("Initializing task tree done.");
}