ItEr30S17ValidacionEProbasFuncionais: Using 8 hours per day if resource has not calendar assigned.
This commit is contained in:
parent
f949e11351
commit
a623f0280e
2 changed files with 4 additions and 0 deletions
|
|
@ -406,6 +406,8 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
|
|||
ResourceCalendar calendar = resource.getCalendar();
|
||||
if (calendar != null) {
|
||||
hours += calendar.getWorkableHours(date);
|
||||
} else {
|
||||
hours += 8;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue