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

fix: remove condition( if not self.assignment_based_on:) #1644

Closed
wants to merge 5 commits into from

Conversation

Jeevansyriac
Copy link
Contributor

issue: When we assign a leave policy without selecting based on then earned leave count shows as 0

@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal

@krantheman krantheman assigned krantheman and unassigned krantheman Apr 10, 2024
@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal please check

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.86%. Comparing base (a8f2490) to head (21c0d8a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1644      +/-   ##
===========================================
- Coverage    72.90%   72.86%   -0.04%     
===========================================
  Files          203      203              
  Lines        11244    11242       -2     
===========================================
- Hits          8197     8192       -5     
- Misses        3047     3050       +3     
Files Coverage Δ
...leave_policy_assignment/leave_policy_assignment.py 88.48% <100.00%> (+0.46%) ⬆️

... and 2 files with indirect coverage changes

@ruchamahabal ruchamahabal self-assigned this Apr 16, 2024
@ruchamahabal
Copy link
Member

I think this was done intentionally during design to have earned leave based on leave period/DOJ only (unsure why). On rethinking it, open-ended date ranges should also support this but the Leave Policy should be mandatory for earned leaves since the total leaves for the year come from there.

Can you verify this in the modified flow and add a test for earned leave allocation with this option?

@Jeevansyriac
Copy link
Contributor Author

#1697

@ruchamahabal
Copy link
Member

Closing this as a duplicate of #1697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants