Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 36 ยท Business Processes

Hire to Retire

Follow an employee through the hire-to-retire process: recruiting, onboarding, time and attendance, payroll, performance, development and offboarding, with a runnable payroll stand-in.

People are a company's largest cost in many industries, and the process that manages them is hire to retire (H2R). It spans the whole employment life cycle: finding people, bringing them on board, recording their time, paying them correctly, developing them and finally managing their exit. HR processes touch sensitive personal data and tight legal rules, so accuracy and access control matter more than in most areas.

This lesson goes through the stages, the data each creates and a payroll stand-in. Payroll rules differ strongly by country, so every number here is invented.

The life cycle

flowchart LR
  A["Recruit"] --> B["Hire and onboard"]
  B --> C["Time and attendance"]
  C --> D["Payroll"]
  D --> E["Performance and development"]
  E --> F["Changes: promotion, transfer"]
  F --> G["Offboarding"]

An employee's journey, each step feeding the next.

Stages in detail

Recruiting. A manager opens a position (requisition). Candidates are tracked from application to offer. Many companies use a dedicated applicant tracking system linked to the HR module.

Hiring and onboarding. Accepting an offer creates an employee master record: personal data, contract, position, organisational unit, salary, bank details, tax and social-security information. Onboarding also assigns equipment, system access and training.

Time and attendance. Hours worked, overtime, shifts, leave and absence are recorded, through time clocks, mobile apps or timesheets. Approvals follow policy.

Payroll. Gross pay is calculated from salary and time, then taxes, social contributions, benefits and deductions produce net pay. The result goes to the bank and the general ledger.

Performance and development. Goals, reviews, skills, training records and succession planning.

Changes. Raises, promotions, transfers and contract changes are recorded with an effective date so history is kept.

Offboarding. Resignation or termination triggers final pay, leave payout, return of equipment, access removal and a record retained according to law.

Master data in HR

Python An employee record with effective dating

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Effective dating lets the system answer "what was her salary on a past date?" and supports retroactive corrections.

A payroll stand-in

Real payroll uses statutory tax tables that change yearly. The following is a toy model with invented rates, to show the structure: gross, deductions, net, employer cost.

Python A toy payroll run

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice that the employer cost is higher than gross pay. Budgets must use the former.

Payroll posting to finance

The payroll run produces journal entries that finance posts:

Item Debit Credit
Gross salaries Salary expense Payroll payable
Employer contributions Social expense Social contributions payable
Payment of net pay Payroll payable Bank

This link is a good example of module integration, covered next in the HR and payroll module lesson.

Compliance and privacy

HR data is personal data. Typical rules: collect only what is needed, restrict access by role (a manager sees their team, not everyone's salary), keep records for the legally required time and then delete. Privacy laws such as GDPR in Europe add rights for employees to see their data. Treat this as a design requirement rather than an afterthought.

Python Row-level access for managers

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Metrics

Typical HR measures: headcount, turnover rate, time to hire, absence rate, training hours and cost per hire.

Python Turnover rate

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does effective dating allow?

    Records carry a valid-from date so history is preserved and retroactive changes are possible.
  2. 2. Why is employer cost higher than gross pay?

    Employers pay social contributions and benefits on top of the gross salary.
  3. 3. Which is a good HR access rule?

    Least privilege: people see only what their role requires.
  4. 4. What happens in offboarding?

    Offboarding closes the employment properly, from final pay to removing system access.

Summary

  • H2R covers recruiting, onboarding, time, payroll, development, changes and offboarding.
  • The employee master record is effective-dated to keep history.
  • Payroll turns gross into net and posts entries to finance; employer cost exceeds gross pay.
  • HR data is personal: use role-based access and follow retention rules.

Next: The Finance Module