<aside> 🔁 Synced from GitHub #c1c5faeb685d. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.

</aside>

People & employee records

Status: Live

💡 In plain words

This is the employee file. Every employee or contractor has a record holding their job, pay, bank details, tax, pension and any extra fields the company adds.

Almost everything else in PaidHR (leave, payroll, attendance) reads from this record. Separately, a person can have a login to use the app. The record and the login are two different things, so someone can exist on payroll without ever signing in.

The employee record is the person's folder in the HR cabinet. The login is the key card that lets them into the building. You can have a folder without a key card.

Who's involved: HR (creates and updates records), the employee (can update some of their own details, sometimes needing approval), and managers (can open the records of people who report to them, directly or further down).

In one paragraph

Every employee or contractor is a Person in the company's tenant database. The person record holds job, pay, bank, tax, pension and custom fields, and nearly every other module hangs off it. A person may also have a User (login) in the membership database. These are two separate records joined by email and organisation, and both have their own status.

Key ideas

Term Meaning
Person The HR record (Persons). Identified by PersonId internally and PersonKey in URLs
User The login (AspNetUsers, membership). Has its own status
Person type 1 Employee, 2 Contractor
Employee type 1 Salaried, no overtime; 2 Salaried, overtime-eligible; 3 Paid by the hour. Drives overtime and hourly pay in time & attendance
Pay band / pay grade The level a person sits at. Sets base pay, allowances, statutory benefits and tax reliefs, and decides which leave, loan and exit policy rows apply
Policy group A custom group of people, used as an alternative to bands/grades for assigning policies
Workplace / office address Where they work; also the scope for shifts, geofences and approval chains
Department Org unit; has a head (HOD) and is an approval-chain scope
Custom fields Company-defined fields, grouped, with file uploads
Dependents A count of the person's primary dependants (Persons.Dependents), set from the Oracle Fusion feed and used in the NSITF statutory report

Statuses

Person status Login (user) status
1 Active 1 Active
2 New (added, not yet confirmed) 5 New (invited, no password yet)
3 Suspended 2 Suspended
4 Terminated (exited) 3 Terminated
5 Deleted 4 Deleted

The numbers differ between the two tables. Always say which one you mean.

How it works

Adding people

flowchart LR
  A[Add one / Add_Multiple / Import CSV] --> N[Person status New]
  N --> R[Review & Confirm<br/>Save_Review, Save_Confirm]
  R --> ACT[Person Active]
  ACT --> INV[Send_Invitation → User New]
  INV --> PW[Employee sets password → User Active]
  ACT --> EWA[Hourly sync → enrolled in EWA<br/>if the company uses it]
  ACT --> WAL[Employee wallet created<br/>DataSynchronizationService]

Changing people

Each area of the profile has its own update endpoint, so changes are audited separately: employment details, employment status, compensation, personal details, tax, NHF, pension (participation and voluntary contributions), primary/secondary/preferred bank account, office address, next of kin, notes, custom fields, split-payment configuration. Bulk update files exist for accounts, annual earnings, earnings, rent and split payments.