frappe / hrms

Open Source HR and Payroll Software
https://frappe.io/hr
GNU General Public License v3.0
1.29k stars 666 forks source link

Attendance Request should be stopped for half day #181

Open ashish-greycube opened 5 years ago

ashish-greycube commented 5 years ago

Scenario An employee comes to office on 5th Dec for half day and then leave. There is no leave application from him. Create Attendance Request for half day on 5th Dec and submit it.

Actual: Attendance Request gets submitted. Such that Attendance record has status='Half day' and leave_type=none Expected: When someone is on half day presence, it should be mandatory to have half day leave record so that payroll cuts pay for half day. Solution- Half day attendance request should not be allowed. Instead there should be validation message which says ' Attendance not submitted for half day. Instead put half day leave on 2018-12-05'

elan-k commented 2 years ago

We can limit the access to the create action in attendance doctype.

I hope.., attendance doctype access is to be given to HR or Reporting Manager only. Not for every employee.

So that employees can only report their leaves on the system and the employer can track the employee attendance through Biometrics Or Timesheet Entries.