Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Earned Leave UX #1104

Open
11 tasks done
ruchamahabal opened this issue Nov 27, 2023 · 1 comment · May be fixed by #1156
Open
11 tasks done

[Enhancement] Earned Leave UX #1104

ruchamahabal opened this issue Nov 27, 2023 · 1 comment · May be fixed by #1156
Assignees

Comments

@ruchamahabal
Copy link
Member

ruchamahabal commented Nov 27, 2023

Problem

Earned leaves are auto-allocated via the scheduler based on the annual allocation set in the Leave Policy.
https://frappehr.com/docs/v14/en/leave-type#2-2-earned-leave

When users create a leave allocation based on earned leave via policy assignment, they have to do the mental math on how many leaves will be allocated per month. Since this happens via bg job, the user doesn't come to know if any auto allocation failed. And there is no way for the user to allocate earned leaves manually if allocation fails.

Solutions

  • For monthly frequency only: Show the schedule of how many leaves would be allocated each month in a tabular format in leave allocation form dashboard. Check auto repeat schedule in the framework for reference
  • In the background job, maintain a list of failed auto-allocations and notify users with the HR manager role about the failure via email. Check sendmail_to_system_managers for reference
  • Add a button in the earned leave document on top to “Allocate Leaves Manually". Show a dialog and default it to the monthly number of leaves for annual allocation with a button: “Allocate”. Create leave ledger entries on “Allocate”. Leave a trace in the document timeline saying "x number of leaves were manually allocated by {user} on {date}". Check earned leave bg job for reference - it also leaves a trace in the timeline when leaves are auto-allocated

Additional Related Chores

Update these pages. They have outdated steps

@JitendraSAW
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

3 participants