Leave Application by Hours

Hello,

Could you please suggest me that is it possible if I’d like to create a leave by minutes or hours?
Since the existing uses by date only and also provides “Half day” but if I’d like to make a leave for 2 hours or 2 and a half hours, how can I do this?

Thanks in advance
Regards,

That’s not possible at the moment and would likely be hard to customize.

What’s your use case? Maybe leave application is not the right tool for the job.

Thank you for your prompt response. I appreciate your insight. Our use case involves a need for more granular leave tracking. In our organization, employees often require leaves for specific hours or minutes due to varying circumstances.

For example, there are instances where employees may need to attend a personal appointment, handle urgent matters, or take short breaks for personal reasons. The ability to request leaves in hours or minutes would provide a more accurate representation of their time away from work.

While I understand that this might be a unique requirement, it aligns with the specific needs of our team members. I believe having the flexibility to request leaves in shorter increments would enhance the accuracy and efficiency of our leave management process.

If there are any alternative tools or solutions you could recommend that cater to such specific leave tracking needs, I would greatly appreciate your suggestions. Thank you again for your assistance.

like @rmeyer Said, there is no straightforward solution to it. But

I believe the timesheet feature can be tried!
It can give you the exact amount of time an employee worked and you can do the math based on that.

For some of our clients we have implemented a concept we call Flexitime. It uses accurate attendance tracking (hours + minutes) and stores the actual and expected working time as well as the difference in the Attendance DocType. Employees can compensate the difference by working longer/shorter hours another day or taking a compensatory day off. A custom report gives a detailed overview of each employees’ balance. An additional DocType Flexitime Correction allows HR to set the balance to an arbitrary, agreed upon number.

1 Like

Hello, I also was looking for the solution and now came up with a small app to,

  • Leave Application with half day, the half day can be 1-7 hours choice, Leave Ledger Entry can be booked in the fraction of hours / 8.
  • But the Attendance will still be just Half Day (to minimize complexity).

So, for now, it works only on Leave Application, I have not tested with other use case, i…e, compensation leave request, etc.

If anyone try it and got bugs, let me know. Thanks.

1 Like

That is wonderful and should be merged as an option for ‘leave request by hour’

@kittiu Hello My friends…
Thank you so much for your contribution, but unfortunately, that didn’t work for me. Could you please provide the full leave_application.py file…?
@fzhan is it working for you…?

You mean this file? thai_leave/thai_leave/custom/leave_application.py at main · kittiu/thai_leave · GitHub

@kittiu yes exactly…