brotherton-erpnext/erpnext/hr
Rucha Mahabal f208903250
feat: Scheduling Multiple shifts and Auto Attendance (#29955)
* refactor: overlapping shifts validation

- convert raw query to frappe.qb

- check for overlapping timings if dates overlap

- translation friendly error messages with link to overlapping doc

* refactor: consider timeslots in `get_employee_shift`

* fix: handle shift grace overlap while finding current shift

* refactor: handle shifts spanning over 2 different days

* fix: fetching shift on timing boundaries

* refactor: rewrite docstrings and add type hints for functions

* refactor: Allow multiple attendance records creation for different shifts

* feat: auto attendance marking for multiple shifts on the same day

* refactor: mark absent for employees with no attendance

- break down into smaller functions

- make it work with multiple shifts

- this will mark employee as absent per shift, meaning employee can be present for one shift and absent for another on the same day

* chore: sort imports, remove unused imports

* refactor: Monthly Attendance Sheet

- split into smaller functions

- add type hints

- get rid of unnecessary db calls and loops

- add docstrings for functions

* feat: add colors for attendance status to lessen the cognitive load

- legend with colors and full form for status abbreviations

* feat: show shift-wise attendance in monthly attendance sheet

* test: monthly attendance sheet

* style: format code with black

* chore: ignore formatting changes in blame

* test: fetching shifts in Employee Checkins

* fix(test): make holiday list for shift and checkin tests

* fix: tests

* test: shift assignment creation

* fix: attendance fixes

- check half day attendance threshold before absent threshold to avoid half day getting marked as absent

- round working hours to 2 digits for better accuracy

- start and end dates for absent attendance marking

* test: Shift Type with Auto Attendance setup and working

fix test setups

* refactor: Overlapping validation for Shift Request

- commonify time overlap function between request and assignment

- add tests for shift request overlap

* chore: remove unused import

* fix: add validation for overlapping shift attendance

- skip auto attendance in case of overlapping shift attendance record

- this case won't occur in case of shift assignment, since it will not allow overlapping shifts to be assigned

- can happen if manual attendance records are created

* test: validations for duplicate and overlapping shift attendance records

* test: skip auto attendance

* fix: skip validation for overlapping shift attendance if no shift is linked

* test: add holiday related shift and attendance tests

* test: add attendance sheet tests for employee filter, half days

* fix: sider
2022-04-06 10:56:47 +05:30
..
dashboard_chart fix: minor payroll_dashboard fixes (#22832) 2020-08-03 08:57:49 +05:30
doctype feat: Scheduling Multiple shifts and Auto Attendance (#29955) 2022-04-06 10:56:47 +05:30
hr_dashboard/human_resource Fix: HR and Payroll Dashboard (#22771) 2020-07-23 12:10:48 +05:30
module_onboarding/human_resource feat(HR): Some Enhancements and Onboarding (backport #25741) (#27741) 2021-10-02 13:28:39 +05:30
notification fix: show Exit Questionnaire button only to the users with write access 2021-12-07 13:04:23 +05:30
number_card Fix: HR and Payroll Dashboard (#22771) 2020-07-23 12:10:48 +05:30
onboarding_step feat(HR): Some Enhancements and Onboarding (backport #25741) (#27741) 2021-10-02 13:28:39 +05:30
page style: format code with black 2022-03-28 18:52:46 +05:30
print_format chore: mass trailing whitespace and EOF fixes 2021-08-19 13:43:28 +05:30
report feat: Scheduling Multiple shifts and Auto Attendance (#29955) 2022-04-06 10:56:47 +05:30
web_form chore: remove all six compat code 2021-11-05 11:16:29 +05:30
workspace/hr fix: updated standard workspace json files 2022-01-13 19:24:11 +05:30
__init__.py
employee_property_update.js Fix updation of new values 2018-05-15 15:19:24 +05:30
README.md
utils.py style: format code with black 2022-03-28 18:52:46 +05:30

Key features:

  • Leave and Attendance
  • Payroll
  • Appraisal
  • Expense Claim