|
|
@@ -46,6 +46,7 @@ open class TimesheetsService( |
|
|
|
this.normalConsumed = timeEntry.inputHours |
|
|
|
this.otConsumed = timeEntry.otHours |
|
|
|
this.projectTask = projectTask |
|
|
|
this.project = project |
|
|
|
this.remark = timeEntry.remark |
|
|
|
} |
|
|
|
} |
|
|
@@ -72,6 +73,7 @@ open class TimesheetsService( |
|
|
|
this.normalConsumed = entry.inputHours |
|
|
|
this.otConsumed = entry.otHours |
|
|
|
this.projectTask = projectTask |
|
|
|
this.project = project |
|
|
|
this.remark = entry.remark |
|
|
|
this.recordDate = this.recordDate ?: recordDate |
|
|
|
this.staff = this.staff ?: memberStaff |
|
|
@@ -112,7 +114,7 @@ open class TimesheetsService( |
|
|
|
.mapValues { (_, timesheets) -> timesheets.map { timesheet -> |
|
|
|
TimeEntry( |
|
|
|
id = timesheet.id!!, |
|
|
|
projectId = timesheet.projectTask?.project?.id, |
|
|
|
projectId = timesheet.projectTask?.project?.id ?: timesheet.project?.id, |
|
|
|
taskId = timesheet.projectTask?.task?.id, |
|
|
|
taskGroupId = timesheet.projectTask?.task?.taskGroup?.id, |
|
|
|
inputHours = timesheet.normalConsumed ?: 0.0, |
|
|
|