Add filter to process payroll doctype to filter employees

How can I activate new filter for process payroll doctype using custom script to select certain employees for Salary Slip creation?
My case as the following:
I added new custom field to employee doctype named (active projects this field linked to projects)
and I need to make process payroll filter based on active projects when selecting employees and create Salary Slips based on this criateria.

Why don’t you use timesheets against projects to process payroll in this case?

thanks @Pawan we process the payroll on monthly bases and using the above mentioned technique easier from my point of view and the activity costs not used in our case and in addition that we can distribute costs easily on each project. please advise… I need just to filter.

better to add project based filtration for processing payroll like Branch, department and designation!

1 Like