feat(timesheets): added timesheet_id to shifts return objects
This commit is contained in:
parent
28f811e1fb
commit
488f0341cc
|
|
@ -36,6 +36,7 @@ export class TotalExpenses {
|
|||
}
|
||||
|
||||
export class Shift {
|
||||
timesheet_id: number;
|
||||
date: string;
|
||||
start_time: string;
|
||||
end_time: string;
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user