diff --git a/src/time-and-attendance/modules/time-tracker/timesheets/dtos/timesheet.dto.ts b/src/time-and-attendance/modules/time-tracker/timesheets/dtos/timesheet.dto.ts index 3d30c8b..7e72aac 100644 --- a/src/time-and-attendance/modules/time-tracker/timesheets/dtos/timesheet.dto.ts +++ b/src/time-and-attendance/modules/time-tracker/timesheets/dtos/timesheet.dto.ts @@ -36,6 +36,7 @@ export class TotalExpenses { } export class Shift { + timesheet_id: number; date: string; start_time: string; end_time: string; diff --git a/src/time-and-attendance/modules/time-tracker/timesheets/services/timesheet-get-overview.service.ts b/src/time-and-attendance/modules/time-tracker/timesheets/services/timesheet-get-overview.service.ts index a3c3c91..6576477 100644 --- a/src/time-and-attendance/modules/time-tracker/timesheets/services/timesheet-get-overview.service.ts +++ b/src/time-and-attendance/modules/time-tracker/timesheets/services/timesheet-get-overview.service.ts @@ -122,6 +122,7 @@ export class GetTimesheetsOverviewService { const expenses_source = expenses_by_date.get(date_iso) ?? []; //inner map of shifts const shifts = shifts_source.map((shift) => ({ + timesheet_id: shift.timesheet_id, date: toStringFromDate(shift.date), start_time: toHHmmFromDate(shift.start_time), end_time: toHHmmFromDate(shift.end_time),