maxDays = NumberHelper.setDefaultScale(taskTree.getPersonDays(node));
}
BigDecimal usage = (node != null) ? new BigDecimal(node.getDuration(taskTree, true)).divide(DateHelper.SECONDS_PER_WORKING_DAY, 2,
BigDecimal.ROUND_HALF_UP) : BigDecimal.ZERO;
usage = NumberHelper.setDefaultScale(usage);
final ConsumptionBarPanel panel = new ConsumptionBarPanel(componentId, usage, maxDays, taskId, finished,
parentComponent.getString("projectmanagement.personDays.short"), selectMode == false);
return panel;
}