ItEr30S17ValidacionEProbasFuncionais: Using 8 hours per day if resource has not calendar assigned.

This commit is contained in:
Manuel Rego Casasnovas 2009-10-14 11:48:51 +02:00 committed by Javier Moran Rua
parent f949e11351
commit a623f0280e
2 changed files with 4 additions and 0 deletions

View file

@ -406,6 +406,8 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
ResourceCalendar calendar = resource.getCalendar();
if (calendar != null) {
hours += calendar.getWorkableHours(date);
} else {
hours += 8;
}
}

View file

@ -496,6 +496,8 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
.getCalendar();
if (calendar != null) {
hours = calendar.getWorkableHours(dayAssignment.getDay());
} else {
hours = 8;
}
} else {
hours = dayAssignment.getHours();