feat(timesheet): added comment popup data

This commit is contained in:
Matthieu Haineault 2025-09-10 16:21:32 -04:00
parent a2f07ac3fb
commit 123befb5f8
4 changed files with 8 additions and 4 deletions

View File

@ -30,7 +30,7 @@ const buildPayload = (): CreateShiftPayload[] => {
end_time: row.end_time,
is_remote: row.is_remote,
};
if(row.comment) item.description = row.comment;
if(row.comment) item.comment = row.comment;
return[item];
})
};

View File

@ -12,12 +12,15 @@ export interface TimesheetDetailsDailySchedule {
evening_hours: number;
emergency_hours: number;
overtime_hours: number;
comment: string;
short_date: string; // ex. 08/24
break_duration?: number;
}
export interface Expense {
is_approved: boolean;
comment: string;
supervisor_comment: string;
amount: number;
};
@ -61,6 +64,7 @@ const emptyDailySchedule = (): TimesheetDetailsDailySchedule => ({
evening_hours: 0,
emergency_hours: 0,
overtime_hours: 0,
comment: "",
short_date: "",
break_duration: 0,
});

View File

@ -12,7 +12,7 @@ type Shifts = {
date: string;
start_time: string;
end_time: string;
description: string;
comment: string;
is_approved: boolean;
is_remote: boolean;
}
@ -22,7 +22,7 @@ type Expenses = {
date: string;
amount: number;
km: number;
description: string;
comment: string;
supervisor_comment: string;
is_approved: boolean;
}

View File

@ -3,7 +3,7 @@ export interface CreateShiftPayload {
type: string;
start_time: string;
end_time: string;
description?: string;
comment?: string;
is_remote?: boolean;
};