I have a problem incorporating Over Time / Extra Income in Salary Slip - Payroll in HR.
We have an ERPNext instance running. It is fully functional and the HR module is implemented.
We have created all the salary components and structures and run the payroll to test the same.
One of the salary component is Over time or Extra duty.
To automate the extra earnings in salary slip we need the following logic from code (server script)
In the attendance template (import), we will create a separate section for extra duty in that if we declare the additional salary is required in the salary slip so the system will create an additional salary document based on our entered data like total hours, rate and amount. While we import the attendance system will check the validation and make an additional salary.
@Deva_Bapat One way is to create the Timesheets for the Overtime hours. And then Create a new Payroll Entry and select the “Salary Slip Based on Timesheet” checkbox. The Salary Slip of the employee will fetch all the timesheets (if any) of that employee created for that particular period and calculate the Overtime Component in the Salary Slip accordingly.
Exactly same feature we have implemented for one of our client in Qatar. It works as below.
A custom field has been created in Attendance for “Extra Duty” (in hours)
Attendance created by Attendance device or manually imported will calculate the “Extra Duty” in “Attendance” document
During Payroll process in Salary Slip, total number of Extra Duty will be calculated and based on the rate of Extra Duty defined either in Employee master or Settings or Base salary,
respective amount will be added to the Salary component table
I hope the description provided will be useful to you.
If you need further support kindly let me know we have the feature ready available