fix(timesheets): minor fix
This commit is contained in:
parent
c58e8db59f
commit
0fc80f50f9
|
|
@ -49,9 +49,6 @@ export class TimesheetsController {
|
||||||
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
|
||||||
//_____________________________________________________________________________________________
|
//_____________________________________________________________________________________________
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 ?? '',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user