-
Notifications
You must be signed in to change notification settings - Fork 10
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
Delay OverTime Calculation for Penalty and Reward #2
Comments
Employee Checkin DocType Fields
|
Attendance Doctype
|
Shift Doctype
|
Delay Penalty Rules DocType
|
Delay OverTime Entry (like Payroll Entry) Filter Criteria and based on that Get Employees Filter Criteria
Employee Delay OverTime Table
For each record in the delay and overtime table, 2 records will be created in additional salary doctype for the employee
Logical Steps to calculate Delay and OverTime (in Mins)
To Calculate the per minute amount for OverTime and Delay For all Employees start in Loop
|
Company > Payroll Settings (Section) > Delay and OverTime Calculation Settings (sub- section) Delay and OverTime Settings Calculate Per min Salary Based on
if Fixed Days , Please Mention No. Of Fixed Days = 30 (Default Value)
system will ignore the checkin, checkouts on non-working days / holiday.
*OverTime Multiplication Factor set at department wise will have higher priority.
|
Daily Night Script , maintain Log for the same
Employee Attendance Script Logic
At the End, Send Script Run Report . |
Precondition
Standards Data (not to delete) Salary Components |
Do we require company field here? |
Indicate which are new fields? |
If delay is more than say 3 hours (in 8 hour shift) do you want to call it half-day? |
ESSO had company field not sure why? https://raw.githubusercontent.com/creamdory/erpnext/c1971a3ffa5aa9c816c6e50ffbf56dd95c032fa9/erpnext/hr/doctype/employee_checkin/employee_checkin.json |
Overall Design Diagram
Create Employee Checkin Doctype
Attendance doctype field additions
Shift Doctype - Fields Addition
Delay Penalty Rules Doctype
Company > Payroll Settings
Company > Payroll Settings > Delay and OverTime Calculation Settings
Delay OverTime Entry (like Payroll Entry) with Calculation Logic
Additional Salary Record Creation based on Delay OverTime Entry
Preconditions and Standard Data
Daily Night Scriptto convert Employee Checkin to Attendance doctype
Salary Component > add flag > is delay and overtime applicable
Department Doctype ( Add field = Overtime Multiplication Factor, field Type =float)
The text was updated successfully, but these errors were encountered: