horilla-opensource / horilla

Horilla is a free and open source HR software.
https://www.horilla.com/
GNU Lesser General Public License v2.1
153 stars 102 forks source link

In Work records need to show leave types like sick leave ,casual leave #289

Open RaagulElangovan opened 3 weeks ago

RaagulElangovan commented 3 weeks ago

Feature Request

Description

When you apply for leave, the work record should display the specific type of leave applied for instead of marking it as "Absent." If partial leave is applied, the system should display a combination of leave type and work hours (e.g., "Half Day Present - Sick Leave").

Use Case:

The user requires an accurate representation of leave in the work record, necessitating clear records for both attendance and leave management. They need to track employee attendance and leave precisely.

Priority

High

horilla-opensource commented 3 weeks ago

Hi @RaagulElangovan , We have tried to add the leave type to the work records, but due to the multiple color combinations, the work record view has some user experience issues. One thing we can do is, we can display the leave type on hover over the record.

With Regards, Team Horilla

RaagulElangovan commented 3 weeks ago

Hi Team, As you have issue in displaying the different leave type due to UI issue, Can you provide those leave type data in the export option in excel?

Thanks, Raagul

horilla-opensource commented 2 weeks ago

Hi @RaagulElangovan , We have added the feature for displaying leave type in work records export. Please replace the views.py in attendance app (attendance/views/views.py) with the file provided in the below link. views.py

Please let me know if you have any questions.

With Regards, Team Horilla

RaagulElangovan commented 2 weeks ago

image (7) Hi team, After applying the code, the ABS cells are currently colored, but we want the Excel file to differentiate leave types by displaying 'ABS' with distinct labels according to each specific leave type (e.g., green for sick leave, blue for casual leave), ensuring that every absence is clearly identified."

horilla-opensource commented 2 weeks ago

Hi @RaagulElangovan , You want the labels inside the cell to be specifically showing the leave type name rather than ABS ?

With Regards, Team Horilla

RaagulElangovan commented 2 weeks ago

Yes, the goal is to have the labels inside the excel cell specifically show the leave type name, such as "Sick Leave" or "Casual Leave," rather than just displaying "ABS." This will make it clearer which type of leave has been applied.

horilla-opensource commented 2 weeks ago

Hi @RaagulElangovan , Please update the views.py with the new views.py in the link below. views.py

Please let me know if you have any questions.

With Regards, Team Horilla

ArulJacklin commented 1 week ago

Hi Team,

"When continuous leave is applied, the first day is correctly recorded as the type of leave applied, but subsequent days are marked as ABS (Absent). Example: If, I apply sick leave continuously for three days first day it showing as a sick leave but next two days it showing as ABS in the work record. Screenshot 2024-08-30 135434

horilla-opensource commented 1 week ago

Hi @ArulJacklin , Please find the updated code in the below link. Replace the views.py file with the latest file from the link. views.py

Please let us know if you have any questions.

With Regards, Team Horilla

RaagulElangovan commented 1 week ago

Hi Team,

In the Excel file, the half-day present and half-day leave are not reflected correctly; instead, it is displaying a full day of leave as taken. image (8)

horilla-opensource commented 1 week ago

Hi @RaagulElangovan , It'll be difficult to have all the details to be included in the single cell. It'll affect the overall readability of the export sheet. If needed we can add that also.

With Regards, Team Horilla

Kuttypillai commented 1 week ago

Hi team, Can you add like the mentioned image image (2)

Kuttypillai commented 3 days ago

Hi team, when can we expect this feature