Part 5 — Attendance
Part 5 — Attendance
15. How attendance is decided (the rules)
Understanding these rules prevents most attendance disputes.
15.1 Which shift applies today?
The system checks in this order:
- A roster override for that day.
- The employee's assigned shift or pattern.
- The employee's own Check-in / Check-out time and Weekend Days.
15.2 Check-in window
- Check-in is allowed until shift start + grace minutes.
- Checking in after the shift start (but within grace) is allowed and marked "Late".
- After the window closes (and Auto-mark absent is on), the employee is marked Absent and cannot check in.
| Example: Shift 9:30, grace 15. | Check-in time | Result |
|---|---|---|
| 9:10 | Present (on time) | |
| 9:40 | Present, remark Late | |
| 9:45 | Present, remark Late (last allowed minute) | |
| 9:46 | Refused: "Check-in was allowed until 9:45 AM. You are marked absent for today." |
15.3 Check-in is refused when…
| Reason | Message the employee sees |
|---|---|
| Today is a holiday | "Today is a holiday" |
| Today is their week-off | "Today is your week off" |
| They are on approved full-day leave | "You are on approved leave today" |
| Already checked in | "Already checked in today" |
| Window closed / already marked absent | "Check-in was allowed until …" / "You are marked absent for today and cannot check in." |
| Employee is on Device mode | "Use biometric device" |
15.4 Present, Half day or Absent?
After check-out, worked hours = check-out − check-in.
| Worked hours | Status |
|---|---|
| ≥ Min work hours | Present |
| ≥ Half-day limit but < Min work hours | Half Day |
| < Half-day limit | Absent (remark "Insufficient hours") |
| Checked in, never checked out | The Status if no check-out setting (default Present) |
| Example: Min work hours 9, half-day rule 50% → half-day limit 4.5 hours. | Check-in → Check-out | Hours | Status |
|---|---|---|---|
| 9:30 → 18:35 | 9.08 | Present | |
| 9:30 → 15:00 | 5.5 | Half Day | |
| 9:30 → 12:00 | 2.5 | Absent |
15.5 Overtime
- OT counts full hours only, after the shift end time.
- Shift ends 18:00: check-out 18:58 → 0 OT; 19:00 → 1 hour; 19:30 → 1 hour; 20:00 → 2 hours.
- OT pay: Flat rate = hours × employee's OT Rate per Hour. Multiplier = hours × (daily rate ÷ min work hours) × multiplier.
Example: Warehouse picker, OT rate ₹120, worked until 20:10 on a 9–18 shift → 2 OT hours → ₹240 added in payroll.
15.6 Night shifts
For shifts that cross midnight (e.g. 23:00–07:00), a punch at 2:30 AM belongs to the shift that started the previous evening. The Night shift punch buffer (default 120 minutes) allows punches up to 2 hours before the start or after the end to belong to that shift.
Example: Ravi's night shift on Monday 23:00 → Tuesday 07:00. He checks in Monday 22:50 and checks out Tuesday 07:05. Both punches are recorded on Monday's attendance.
15.7 Minimum time before check-out
An employee cannot check out within Minimum minutes between check-in and check-out (default 10) of checking in. This prevents accidental double taps.
16. Check-in and check-out from the employee portal
What it is
Employees on Software attendance mode check in and out from their phone or computer. A selfie is taken (if required) as proof.
How an employee checks in
- Log in to the portal → Dashboard.
- Tap Check In.
- If selfie is required: allow camera → position face → Capture → Confirm (or Retake).
- Message: "Checked in successfully". Today's card shows the check-in time and selfie.
How an employee checks out
- Tap Check Out (enabled only after check-in).
- Take the selfie (if required) → Confirm.
- Message: "Checked out successfully".
What the dashboard shows
- Today's Attendance card: check-in/out times, status, today's shift (e.g. "Morning: 07:00 AM — 03:00 PM" or "Week off"), minimum hours, and "Check-in until 07:10 AM (grace 10 min)".
- A red notice when check-in is closed explains why.
- Alerts like "You are checked in today. Use Check Out when you finish your shift." and "Missing check-out on: …" for past days.
Scenarios
| Situation | What happens |
|---|---|
| Selfie required = No in Company Settings | One tap checks in. No camera. |
| Employee taps Check Out 5 minutes after check-in | "Check-out is allowed at least 10 minutes after check-in". |
| Employee arrives after grace | Check-in refused; red notice on the dashboard; attendance shows Absent. |
| Employee forgets to check out | Day gets the "Status if no check-out" value; admin sees a Missing check-out alert and can correct it. |
| Employee has approved half-day leave in the morning | They can check in late (e.g. at 2 PM) without being marked absent. |
| Employee is on Device mode | No buttons; dashboard says "Attendance mode is Device. Use biometric terminal (PIN: 27)." |
Common mistakes
| Problem | Fix |
|---|---|
| "Camera not supported in this browser. Use HTTPS." | Open the portal with https://demo.officehrms.in/..., not http://. |
| "Could not access camera. Allow camera permission." | Phone Settings → browser → Camera → Allow. |
| "A valid selfie is required" | Retake the selfie in better light; make sure the image was captured before tapping Confirm. |
17. Biometric (fingerprint) devices
What it is
OfficeHRMS connects directly to ZKTeco fingerprint/face devices (e.g. K40 Pro) using the device's Cloud Server / ADMS feature. When an employee punches, the device sends the punch over the internet to OfficeHRMS, and attendance updates automatically — no software on a PC is needed.
Step 1 — Register the device in OfficeHRMS
- Find the device serial number: on the device Menu → Device Info → Serial Number (also on the back label).
- Sidebar → Biometric → Devices → Add Device.
- Enter Device Name (e.g. "Warehouse Gate") and Serial Number exactly as shown.
- Save → "Device saved. It will show Online after the next sync."
Step 2 — Point the device to OfficeHRMS
| On the device: Menu → Comm. → Cloud Server Setting (sometimes called ADMS): | Device setting | Value |
|---|---|---|
| Server address / domain | demo.officehrms.in |
|
| Port | 443 (for https) |
|
| Enable domain name / HTTPS | On | |
| Path (if asked) | /iclock/cdata |
The Devices page shows these exact values for your installation in the "ZKTeco cloud / ADMS server address" box. Within a few minutes the device status changes to Online.
Step 3 — Link employees to device users
- On the device, note each person's User ID (User Mgt → Browse), e.g. Suresh = 27.
- In OfficeHRMS, edit the employee → Attendance tab → Attendance Mode = Device → Biometric User ID (PIN) = 27. Save.
How punches become attendance
- First punch of the day = check-in (marked Late if after shift start).
- Every later punch = check-out (the last punch of the day wins).
- A punch within the minimum check-out minutes of the check-in is ignored as a check-out.
- If the first punch is after shift start + grace (and auto-absent is on), the day is marked Absent.
- Punches on holidays, week-offs or full-day approved leave are recorded but don't create attendance.
The Devices page
| Column | Meaning |
|---|---|
| Status | Online if the device contacted the server in the last 30 minutes, otherwise Offline. |
| Server Time / Device Time | Shows if the device clock is out of sync. The server automatically sets the device to Indian time. |
| Last Connected | Last contact time ("Never" if it has never connected). |
The Sync Log page
Sidebar → Biometric → Sync Log:
- Punches table — every punch received with Synced to Attendance: Yes/No.
- No means no employee has that Biometric PIN with Attendance Mode = Device.
- Device Request Log — every contact from devices. If this is empty after someone punches, the device is not reaching the server.
Scenarios
| Situation | What happens |
|---|---|
| Worker punches in at 8:55 and again at 9:00 by mistake | 8:55 = check-in. The 9:00 punch is too soon to be a check-out and is ignored. |
| Worker punches out at 18:02, then again at 18:20 when leaving the gate | Check-out = 18:20 (last punch wins). |
| Internet at the warehouse goes down for 2 hours | The device stores punches and uploads them when the connection returns. |
| New employee enrolled on the device but not linked | Punch appears in Sync Log with Synced = No. Link the PIN on the employee; future punches sync. Fix past days in Attendance. |
Common mistakes
| Problem | Fix |
|---|---|
| Device stays Offline | Check the serial number matches exactly; check the server address/port on the device; check the device has internet. Look at the Device Request Log. |
| Punches show Synced = No | Employee's Attendance Mode isn't Device or the PIN doesn't match. |
| Device time wrong | It corrects automatically after the next sync. The Devices page shows the drift. |
18. Attendance Log and corrections (admin)
What it is
The full attendance register. HR can view, add and correct attendance here.
How to view
- Sidebar → Attendance.
- Filter by From / To dates, Employee, Status (Present, Half Day, Absent, Weekend, Holiday, Leave) → Apply Filter.
- Columns: Date, Employee, Check In, Check Out, Hours, Status, Source (software / device / admin / system), Remarks (Late, Half day, Insufficient hours, map links for GPS), Selfie (In / Out links).
How to correct or add a day
- Click ✏ on a row (or Add Attendance for a missing day).
- Set Check In, Check Out, Status (Present, Half Day, Absent, Weekend, Holiday) and Remarks (e.g. "Forgot to check out — confirmed by manager").
- Save → "Updated".
Scenarios
| Situation | Correction |
|---|---|
| Employee forgot to check out | Edit the day, enter the real check-out time, Status Present. |
| Employee was on official client visit all day | Add attendance: 09:30–18:30, Present, remark "Client visit". |
| Wrongly auto-marked absent on an unplanned holiday | Edit → Status Holiday. (Better: add the holiday in Holidays first.) |
| Device was broken for a day | Add attendance manually for each affected worker. |
What to expect
- Your chosen status is kept as you set it (not recalculated).
- Corrections are recorded in Activity Logs with your name.
- Leave is not set from here — use Leave → Requests so balances update correctly.
- Changes after payroll is finalized need the payroll to be reverted and regenerated.
19. Attendance reports and calendars
| Report | Where | What it shows |
|---|---|---|
| Attendance Calendar | Reports → Calendar | One employee's month as a calendar with coloured days (green present, yellow half day, red absent, blue holiday/leave, grey weekend), times, hours and totals. Has Print. |
| Attendance Report | Reports → Attendance Report | For a date range, per employee: Present, Half Day, Absent, Total Hours, Attendance %. Filter by department/employee. Export PDF / Excel / Print. |
| Dashboard "This month by employee" | Dashboard | Quick monthly summary of the first 15 employees. |
Attendance % formula: (Present + ½ × Half Days) ÷ (Present + Half Days + Absent) × 100. Example: 20 present, 2 half days, 2 absent → (20 + 1) ÷ 24 = 87.5%.
Employees see their own: Reports → Calendar, Reports → Attendance (with PDF/Excel), and Attendance History (last 180 days).