fix(timesheets): minor fix

This commit is contained in:
Matthieu Haineault 2025-10-07 10:28:13 -04:00
parent c58e8db59f
commit 0fc80f50f9
3 changed files with 0 additions and 7 deletions

View File

@ -48,9 +48,6 @@ export class TimesheetsController {
const week_offset = Number.isFinite(Number(offset)) ? Number(offset) : 0; const week_offset = Number.isFinite(Number(offset)) ? Number(offset) : 0;
return this.timesheetsCommand.createWeekShiftsAndReturnOverview(email, dto.shifts, week_offset); return this.timesheetsCommand.createWeekShiftsAndReturnOverview(email, dto.shifts, week_offset);
} }
//_____________________________________________________________________________________________ //_____________________________________________________________________________________________
// Deprecated or unused methods // Deprecated or unused methods

View File

@ -22,7 +22,6 @@ export class ExpensesDto {
date: string; date: string;
amount: number; amount: number;
mileage: number; mileage: number;
km: number;
comment: string; comment: string;
supervisor_comment: string; supervisor_comment: string;
is_approved: boolean; is_approved: boolean;

View File

@ -169,9 +169,6 @@ export class TimesheetsQueryService {
} as TimesheetDto; } as TimesheetDto;
} }
//small helper to format hours:minutes
//maps all shifts of selected timesheet //maps all shifts of selected timesheet
const shifts = timesheet.shift.map((shift_row) => ({ const shifts = timesheet.shift.map((shift_row) => ({
bank_type: shift_row.bank_code?.type ?? '', bank_type: shift_row.bank_code?.type ?? '',