How do I prorate components as per the Basic Pay when an employee is terminated or suspended?

How do I prorate components as per the Basic Pay when an employee is terminated or suspended?

Alert
This feature is available on all PaySpace editions

To prorate a component as per the Basic Pay, activate the "pro rata component as per basic pay" checkbox under "extra options" section of the component.

      Navigate > Config > Payroll > Payroll Config > Payroll Components > extra options