Function: canConvertAppointmentToTimeEntry()
function canConvertAppointmentToTimeEntry(appointment): boolean;Defined in: shared/src/helper/appointmentHelper/appointmentTimerHelpers.ts:52
Checks if an appointment can be converted to a time entry.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
appointment | { created_at: string; description: string | null; end_date: string; id: string; is_all_day: boolean; reminder: string | null; start_date: string; status: "upcoming" | "active" | "finished" | "completed" | "missed"; title: string; type: "work" | "private" | "meeting" | "blocked"; user_id: string; work_project_id: string | null; work_time_entry_id: string | null; } | The appointment to check |
appointment.created_at | string | - |
appointment.description | string | null | - |
appointment.end_date | string | - |
appointment.id | string | - |
appointment.is_all_day | boolean | - |
appointment.reminder | string | null | - |
appointment.start_date | string | - |
appointment.status | "upcoming" | "active" | "finished" | "completed" | "missed" | - |
appointment.title | string | - |
appointment.type | "work" | "private" | "meeting" | "blocked" | - |
appointment.user_id | string | - |
appointment.work_project_id | string | null | - |
appointment.work_time_entry_id | string | null | - |
Returns
Section titled “Returns”boolean
True if appointment can be converted