When resizing a task the workable days are updated
FEA: ItEr61OTS04PlanificacionHaciaAtras
This commit is contained in:
parent
6b93954ec4
commit
bc96b3b2d4
2 changed files with 12 additions and 0 deletions
|
|
@ -628,6 +628,13 @@ public class Task extends TaskElement implements ITaskLeafConstraint {
|
|||
|| resourceAllocations.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateWorkableDays() {
|
||||
if (workableDays != null) {
|
||||
workableDays = getWorkableDaysBetweenDates();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return canBeResized() && !isSubcontracted();
|
||||
|
|
|
|||
|
|
@ -314,11 +314,16 @@ public abstract class TaskElement extends BaseEntity {
|
|||
}
|
||||
boolean sameDay = this.endDate.areSameDay(endDate.getDate());
|
||||
setIntraDayEndDate(endDate);
|
||||
updateWorkableDays();
|
||||
if (!sameDay) {
|
||||
moveAllocations(scenario);
|
||||
}
|
||||
}
|
||||
|
||||
// default implementation meant to be override
|
||||
protected void updateWorkableDays() {
|
||||
}
|
||||
|
||||
protected abstract boolean canBeResized();
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue