QHR Developers

API reference

Time incidents

Absences, late arrivals, early leaves and short hours that QHR detects from attendance, and the decision to deduct them from pay or let them go. What an incident is. Every working day QHR compares the employee's attendance with their attendance profile (shift, grace period). A working day with no attendance is an absence worth the day's hours; a check-in after the shift start beyond the grace period is late; a check-out before the shift end is early_leave; on a flexible day, working fewer than the day's hours is short_hours; a day missing its check-in or check-out is incomplete (nothing to deduct until the record is corrected). Grace is a threshold, not a discount: 20 minutes late with 15 minutes' grace is a 20-minute incident. Weekends, public holidays, approved leave and approved permissions raise nothing. While undecided, an incident follows the attendance: a correction updates its minutes or removes it. Who decides. The attendance profile's approval route is fixed on the incident when it is created: manager — the employee's direct manager decides, and that is final; hr — HR decides; manager_and_hr — the manager decides first: "ignore" is final, "deduct" only recommends and passes the incident to HR, who make the final call. An employee whose manager cannot act (no manager, or a manager without the team attendance permission) goes straight to HR. Managers work from time_incidents.team_list, HR from time_incidents.list; both decide with time_incidents.decide. Before anyone acts, the employee may attach a reason with time_incidents.submit_justification, which the decider sees. What "deduct" does. A decision is final and cannot be reversed. A deducted incident is picked up by the payroll run that covers its date: absence minutes go to the employee's timesheet as absence and late, early and short minutes as undertime, and the run reduces that month's pay accordingly. An ignored incident costs nothing. Once a payroll run covering the date is past time verification, or has paid the incident, it can no longer be decided.