feat(timesheets): added timesheet_id to shifts return objects

This commit is contained in:
Matthieu Haineault 2025-10-27 13:41:20 -04:00
parent 28f811e1fb
commit 488f0341cc
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export class TotalExpenses {
} }
export class Shift { export class Shift {
timesheet_id: number;
date: string; date: string;
start_time: string; start_time: string;
end_time: string; end_time: string;

View File

@ -122,6 +122,7 @@ export class GetTimesheetsOverviewService {
const expenses_source = expenses_by_date.get(date_iso) ?? []; const expenses_source = expenses_by_date.get(date_iso) ?? [];
//inner map of shifts //inner map of shifts
const shifts = shifts_source.map((shift) => ({ const shifts = shifts_source.map((shift) => ({
timesheet_id: shift.timesheet_id,
date: toStringFromDate(shift.date), date: toStringFromDate(shift.date),
start_time: toHHmmFromDate(shift.start_time), start_time: toHHmmFromDate(shift.start_time),
end_time: toHHmmFromDate(shift.end_time), end_time: toHHmmFromDate(shift.end_time),