return ResourcesPerDayModification
.create(newGeneric, getResourcesPerDayEditedValue(), this.resources);
}
private GenericResourceAllocation createGenericAllocation(Task task) {
GenericResourceAllocation result = GenericResourceAllocation.create(
task, resourceType, criterions);
GenericResourceAllocation origin = (GenericResourceAllocation) getOrigin();
if (origin != null) {
result.overrideConsolidatedDayAssignments(origin);
result.setAssignmentFunctionWithoutApply(origin.getAssignmentFunction());
}
return result;
}