feat(timesheet): added comment popup data
This commit is contained in:
parent
a2f07ac3fb
commit
123befb5f8
|
|
@ -30,7 +30,7 @@ const buildPayload = (): CreateShiftPayload[] => {
|
||||||
end_time: row.end_time,
|
end_time: row.end_time,
|
||||||
is_remote: row.is_remote,
|
is_remote: row.is_remote,
|
||||||
};
|
};
|
||||||
if(row.comment) item.description = row.comment;
|
if(row.comment) item.comment = row.comment;
|
||||||
return[item];
|
return[item];
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,15 @@ export interface TimesheetDetailsDailySchedule {
|
||||||
evening_hours: number;
|
evening_hours: number;
|
||||||
emergency_hours: number;
|
emergency_hours: number;
|
||||||
overtime_hours: number;
|
overtime_hours: number;
|
||||||
|
comment: string;
|
||||||
short_date: string; // ex. 08/24
|
short_date: string; // ex. 08/24
|
||||||
break_duration?: number;
|
break_duration?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Expense {
|
export interface Expense {
|
||||||
is_approved: boolean;
|
is_approved: boolean;
|
||||||
|
comment: string;
|
||||||
|
supervisor_comment: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -61,6 +64,7 @@ const emptyDailySchedule = (): TimesheetDetailsDailySchedule => ({
|
||||||
evening_hours: 0,
|
evening_hours: 0,
|
||||||
emergency_hours: 0,
|
emergency_hours: 0,
|
||||||
overtime_hours: 0,
|
overtime_hours: 0,
|
||||||
|
comment: "",
|
||||||
short_date: "",
|
short_date: "",
|
||||||
break_duration: 0,
|
break_duration: 0,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ type Shifts = {
|
||||||
date: string;
|
date: string;
|
||||||
start_time: string;
|
start_time: string;
|
||||||
end_time: string;
|
end_time: string;
|
||||||
description: string;
|
comment: string;
|
||||||
is_approved: boolean;
|
is_approved: boolean;
|
||||||
is_remote: boolean;
|
is_remote: boolean;
|
||||||
}
|
}
|
||||||
|
|
@ -22,7 +22,7 @@ type Expenses = {
|
||||||
date: string;
|
date: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
km: number;
|
km: number;
|
||||||
description: string;
|
comment: string;
|
||||||
supervisor_comment: string;
|
supervisor_comment: string;
|
||||||
is_approved: boolean;
|
is_approved: boolean;
|
||||||
}
|
}
|
||||||
|
|
@ -3,7 +3,7 @@ export interface CreateShiftPayload {
|
||||||
type: string;
|
type: string;
|
||||||
start_time: string;
|
start_time: string;
|
||||||
end_time: string;
|
end_time: string;
|
||||||
description?: string;
|
comment?: string;
|
||||||
is_remote?: boolean;
|
is_remote?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user