feat: Half day lite in Payroll by asmitahase [frappe] PR#2978
From: https://github.com/frappe/hrms/pull/2978
Date: 2025-05-14 13:24:01+05:30
- fix: make default half day status present when attendance is being updated from absent to half day
- patch: only update half day status that has leave application linked
- fix: update modify flag on updating half day attendance
- fix: fetch attendances with modify flag true instead of half_day_status as absent, because absent could be the actual result of the attendance
- test: test_half_day_attendance_when_checkins_exists_but_threshold_is_unmet test: test_half_day_attendance_when_employee_checkins_exists_and_attendance_is_full_day
- fix: mark status of the other half as present when checkins exists and result attendance is full day
- fix: mark status for other half as absent when checkins exist but working hour threshold is not met
- fix: set shift name when marking half day status as absent through auto attendance job
- test: test modifying attendance from absent to half day when leave application is created test: test modifying flag when half day leave application is created first then auto attendance job runs and checkins exist test: test modifying flag when checkins mark half day first then leave application is created test: test modifying half day status from present to absent when leave application is created first auto attendance job runs with no checkins present
- feat: mark other half as absent if created from auto attendance job and no leave application was found feat: modify other half to absent if no checkins were found
- feat: get half day attendance to modify in auto attendance job
- feat: set modify_half_day_status when creating attendance from leave application
- feat: mark other half present if half day is created from leave application feat: use modify_half_day_field to mark othet half as absent through auto attendance job if checkins are absent or work hour threshhold is not met fix: update duplicate attendance record condition
- test: test_payment_days_considering_half_days_unmarked_as_absent test: test_payment_days_considering_half_days_unmarked_as_present test: modified existing tests to accomodate half day
- feat: consider half day as absent and reduce payment days if consider unmarked is set to absent
- patch: set half day status as present in the existing attendance records because payroll considers them paid
Diagnostics
Suspicious changes found (Dokos Only / dokos):
* 8027d060a3782e36544ba61fd035ca69f0f9a6ee patch: set half day status as present in the existing attendance records because payroll considers them paid
```diff
```
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-2978
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-2978
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease