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
Grant Leave via Leave Policy Assignment is not calculating earned leaves - v13 #108
Comments
Manually allocated leaves (via leave allocation) is calculating pro-rated leaves after 2 months. However Grant Leaves is still not doing so. Kindly advise |
@harishalwar9 can you share the screenshot of the Leave Policy Assignment as well |
Thanks @pateljannat Attached is the screenshot of leave assignment |
@harishalwar9 I am unable to replicate the issue on version 13. Sharing the steps that I followed. Let me know if I did something different.
|
@pateljannat Steps carried out is fine, I am talking about prorated leave allocation which should happen every month automatically based on leave type for the leave period. If you look at my example, the leave period is from 01-01-2021 till 31-12-2021 with 1.5 Leaves per month for Privilege leave type. So by end of March 2021, it should have automatically allocated 4.5 leaves (1.5 for 3 months) however it is not doing. So I have to either manually allocate every month or allocate for the entire year upfront. The check box "earned leave", what I understand, is supposed to calculate every month for the given leave period. Excerpt from ERP documentation about Earned Leave - 2.2 Earned Leave For example, an Employee is allotted 24 Privilege Leaves in a year, wherein the Privilege Leave is set as Earned Leave with Monthly allotment. In this case, the Employee will earn 2 (24 leaves/12 months) Privilege Leaves at the end of every month. The leave allotment process (background job) will only allot leaves considering the max leaves for the leave type and will round to 'Rounding' for fractions. |
@harishalwar9 I think this PR will solve the issue |
@harishalwar9 can you confirm if the issue solved? |
I using a docker image. For me to take the PR, I have to migrate from docker and install the source code and then take the pull. I have not tried this yet. |
Grant leaves is not allocating earned leaves prorated
v13.x.x-develop (docker image) hosted in our server and v12.16.2 (locally)
Output of
bench version
of localhostOutput of
bench version
of docker imageSteps to reproduce the issue (docker image)
Showed 0 leaves in balance
1.5 leaves of PL, 0.5 SL and 0.5 CL for Jan 2021 month
Stacktrace / full error message
Additional information
OS version / distribution,
ERPNext
install method - docker image (version mentioned above)Attached is the screenshots of leave allocated via Grant button in Leave Policy Assignment page. Screenshot shows previous carry forward leaves too but issue is with earned leaves not being accrued every month. Kindly advise.
Tried v12 running locally as well but even in that Grant leaves is not working. Below is screenshot for reference
The text was updated successfully, but these errors were encountered: