When copying a day assignmnet pass the effort duration not the hours
Otherwise some of the duration is lost. FEA: ItEr62S05BugFixing
This commit is contained in:
parent
f00ba4f3ce
commit
d5e4fa5d33
2 changed files with 4 additions and 5 deletions
|
|
@ -155,8 +155,8 @@ public class GenericDayAssignment extends DayAssignment {
|
|||
|
||||
private static GenericDayAssignment copyFromWithoutParent(
|
||||
GenericDayAssignment toBeCopied) {
|
||||
GenericDayAssignment copy = create(toBeCopied.getDay(), toBeCopied
|
||||
.getHours(), toBeCopied.getResource());
|
||||
GenericDayAssignment copy = create(toBeCopied.getDay(),
|
||||
toBeCopied.getDuration(), toBeCopied.getResource());
|
||||
copy.setConsolidated(toBeCopied.isConsolidated());
|
||||
return copy;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,9 +137,8 @@ public class SpecificDayAssignment extends DayAssignment {
|
|||
|
||||
private static SpecificDayAssignment copyFromWithoutParent(
|
||||
SpecificDayAssignment assignment) {
|
||||
SpecificDayAssignment copy = create(assignment.getDay(), assignment
|
||||
.getHours(), assignment
|
||||
.getResource());
|
||||
SpecificDayAssignment copy = create(assignment.getDay(),
|
||||
assignment.getDuration(), assignment.getResource());
|
||||
copy.setConsolidated(assignment.isConsolidated());
|
||||
return copy;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue