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 {
|
export class Shift {
|
||||||
|
timesheet_id: number;
|
||||||
date: string;
|
date: string;
|
||||||
start_time: string;
|
start_time: string;
|
||||||
end_time: string;
|
end_time: string;
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user