Part 12 — Help
Part 12 — Help
45. Automatic jobs (cron) setup
Some tasks run automatically on a schedule. Your hosting provider sets these up once using the secret key in cron_config.php. Each job is a web address:
https://demo.officehrms.in/cron.php?job=JOB_NAME&key=YOUR_SECRET_KEY
| Job name | What it does | Suggested schedule |
|---|---|---|
mark_absent |
Marks employees absent who didn't check in by shift start + grace. | Every 30 minutes |
leave_accrual |
Adds monthly/quarterly/yearly leave credits. | Daily at 00:30 |
leave_year_end |
Closes the previous leave year (carry/encash/lapse). Safe to run daily — it only closes a year once. | Daily at 01:00 |
purge_device_logs |
Cleans old biometric logs to keep the system fast. | Daily at 02:00 |
location_tracking_tick |
Supports background GPS tracking for the mobile app. | Every minute (only if you use the mobile app) |
Example cron line (Linux hosting):
*/30 * * * * curl -s "https://demo.officehrms.in/cron.php?job=mark_absent&key=YOUR_SECRET_KEY" > /dev/null
Keep the secret key private. Anyone with the full link can trigger the job.
If the automatic jobs are not set up:
- Employees are still marked absent when they open their dashboard after the deadline, or when they try to check in.
- You can run leave accrual manually (Leave → Requests → Run Accrual Now) and year-end manually (Leave → Year-End).
46. Troubleshooting and FAQ
Login and access
| Problem | Cause | Solution |
|---|---|---|
| Employee: "Invalid credentials." | Wrong password, or employee is Inactive. | Admin: check Status = Active; set a new password via Edit. |
| Admin forgot password | — | Contact your service provider. |
| Employee doesn't see Field Work menu | Field Work enabled after they logged in. | Log out and log in again. |
Attendance
| Problem | Cause | Solution |
|---|---|---|
| Employee marked absent although they came on time | Check-in after shift start + grace, or wrong shift assigned. | Check the shift in Roster; correct the day in Attendance; increase grace if needed. |
| "Today is your week off" on a working day | Weekend Days or roster shows off. | Fix Weekend Days on the employee or override the day in the roster. |
| Check-in button disabled | Already checked in, holiday/week-off, on leave, or window closed. | Read the red notice on the dashboard. |
| Hours look too low | Break time isn't deducted, but check-out is missing. | Enter the missing check-out. |
| Night shift punches split over two days | Shift not marked as crossing midnight / no shift assigned. | Assign a night shift with Crosses midnight ticked. |
| Overtime is 0 though they stayed 50 minutes extra | OT counts full hours only. | Expected behaviour. |
| Biometric punches not showing | Device offline or employee PIN not linked. | See section 17 — check Devices status and Sync Log. |
Leave
| Problem | Cause | Solution |
|---|---|---|
| New employee has 0 leave | Accrual hasn't run yet, or min service not completed. | Run Accrual Now; check the type's Min service. |
| Balance doesn't match old records | Opening balances not entered. | Leave → Balances → Adjust → Opening balance. |
| Can't cancel a leave | It has already started (employee) or payroll is finalized. | Admin cancels; revert payroll first if finalized. |
| Leave counted more days than expected | Sandwich rule is on. | Turn off the sandwich rule on the type or in Company Settings if not your policy. |
Payroll
| Problem | Cause | Solution |
|---|---|---|
| Salary is ₹0 | CTC/rate not entered, or no attendance. | Fill Salary tab; check attendance. |
| Salary lower than expected | LOP days (absent, unpaid leave, before joining). | Check the Attendance summary on the payslip. |
| No PF / ESI / PT deducted | Component not ticked, exempt ticked, no work state, no PT slab, or ESI ceiling. | Check the employee's Statutory tab and slabs. |
| TDS seems high | Regime/declaration not submitted; bonus month projects higher annual income. | Employee submits Tax Declaration; TDS adjusts in following months. |
| Employee can't see payslip | Payroll in Draft. | Finalize. |
| Changes not reflected in payroll | Payroll was generated before the change. | Regenerate (draft) or Revert → Regenerate → Finalize. |
| Export buttons disabled | Payroll not finalized. | Finalize the month. |
| Expense claim not paid | Approved after payroll was finalized, or expense date is in another month. | Revert and regenerate that month, or check the expense date. |
General
| Problem | Solution |
|---|---|
| "Employee limit reached" | Your plan's employee limit includes inactive employees. Contact your provider to upgrade. |
| Live map / route map blank | Add a Google Maps API key in System Settings. |
| Dates show in the wrong format | Company Settings → General → Date format. |
| Need to know who changed something | Activity Logs. |
End of guide. For help that isn't covered here, contact your OfficeHRMS service provider.