TaskSource taskSource = orderElement.getTaskSource();
if (taskSource != null) {
plannedHours = taskSource.getTask().getSumOfAssignedEffort();
}
SumChargedEffort sumChargedEffort = orderElement.getSumChargedEffort();
if (sumChargedEffort != null) {
imputedHours = sumChargedEffort.getTotalChargedEffort();
}
setBudget(orderElement.getSubstractedBudget());
setExpensesBudget(orderElement.getBudget());