Skip to main content

Custom Query: Query for Local and PR employees

How do I filter only local and Singapore PR employees?

Updated over 3 weeks ago

To query for Local and permanent residents, you need to set up the query as follows:

  1. Go to the Payroll module.

  2. Click Query Setup, New and enter a query name, eg, LocalPR

  3. Tick Use Custom Query checkbox, click on the three-dotted button.

  4. Copy this script (Employee.ResidenceStatus in ( 'Local', 'PR1', 'PR2', 'PR3' ) AND Employee.CessationDate = '1899-12-30') OR (Employee.ResidenceStatus in ( 'Local', 'PR1', 'PR2', 'PR3' ) AND Employee.CessationDate >= '2024-01-01' )

  5. Change the cessation from 2024-01-01 to the first of the current month accordingly, if you are querying for active employees of the current month.

  6. Paste into the Query Window as seen in the picture below.

  7. Click Save, close the window, and click Apply.

image.png
Did this answer your question?