HR - Attendance Using Clock In and Out

Hello All,

Honestly, I must say Dolibarr is a platform to really appreciate.It handles so smuch if you know the routes and also flexible. I commend the team.

Now, I used the HR feature which is still okay at the level where it is, but I am suggesting if a little improvement can be done by adding attendance feature under HR where staffers can use a clock in clock out tool in the system. The system uses the system time clock to capture the time in and out.

An HR software has this feature, I saw it and works seamlessly. Having this in Doliabrr would also be great.

How can this be achieved?

Hi @Absmachin

You can do this by developing a custom module under /htdocs/custom/ using the module builder(Follow this https://wiki.dolibarr.org/index.php/Module_Builder).

Use the $user object and Dolibarr’s form security tokens to securely track actions.

On each clock in/out:

  • Use PHP to capture server time: dol_now() or dol_print_date($now, 'dayhour')
  • Save to a custom database table (llx_attendance, for example).
  • Create an interface for for employee interaction and for HR overview and settings.
  • Use Dolibarr’s hooks to show clock-in/out buttons in the top bar or HR tabs.
  • Optionally trigger events with custom triggers like ATTENDANCE_CLOCKIN.

Thanks & Regards
Saikat Koley

Hi,
couldn´t this be easier with the log in and log out of Dolibarr, this is allready working with date / Time and even the IP address, or do you mean something else?

lg
Jason.

Hi Plows,

Timesheet I think you refer to? or you referring to the login time and date into the system? if yes, that isn’t linked to work attendance as someone can equally login from home even before leaving the house :grinning_face:

I know that clock in and out doesn’t exist in Dolibarrn currently…

Thanks also for dropping a way out

1 Like