targo-backend/src/modules/timesheets/dtos/overview-timesheet.dto.ts

29 lines
564 B
TypeScript

export class TimesheetDto {
is_approved: boolean;
start_day: string;
end_day: string;
label: string;
shifts: ShiftsDto[];
expenses: ExpensesDto[]
}
export class ShiftsDto {
bank_type: string;
date: string;
start_time: string;
end_time: string;
comment: string;
is_approved: boolean;
is_remote: boolean;
}
export class ExpensesDto {
bank_type: string;
date: string;
amount: number;
mileage: number;
km: number;
comment: string;
supervisor_comment: string;
is_approved: boolean;
}