Exclude Terminated Employees from Payroll Calculation
Set the Final Close date for all terminated employees.
The Final Close date should be set to a date that's after all payroll processing will be completed for the employee, including all payroll payments and balance adjustments. The Calculate Payroll process will evaluate all active employees, including the terminated employees that don't have a Final Close date specified. Define a Final Close date to ensure only active employees are considered for processing in the payroll run. Remember to enter a Final Close date for all terminated employees, so that they're excluded from the Calculate Payroll process. You can set an Autocomplete Rule to default this date when an employee is terminated, or you can manually enter the date.