If an employee is leaving your organization, then the first thing you need to do is dismiss them in XPayroll. To do so -
Go to the People page, and click on the employee's name to view their profile.
Scroll down to the bottom of the page, and click on Dismiss Employee.
This will open up a new page which will ask you for certain details like the date of dismissal, any additions/deductions to their final payroll, personal email address etc. After you submit this form, XPayroll will update the employee's payroll for the month in which they have been dismissed. Do note that XPayroll will automatically prorate the employee's salary, so you do not need to put in a deduction manually.
After an employee date of dismissal, their access to XPayroll will automatically get revoked. If XPayroll is handling your Form 16s, then the employee will get their's on their personal email address at the end of the financial year.
To process their final payroll
Once an employee's dismissal has been done in XPayroll, you can either run the payroll normally for the entire month as part of your regular payroll cycle, or you can run it just for that employee.