Case study
Code Xenix HRMS: HR & Payroll Platform
HR teams were running people, time and pay across spreadsheets and disconnected tools. Code Xenix built Code Xenix HRMS, one international HR platform that manages the whole employee lifecycle, from hire to payroll, in any country, currency and language.
How Code Xenix built an international, multi-tenant HR SaaS that manages the entire employee lifecycle, from hire to payslip, with country rules built in.
Project Overview
| Product | Code Xenix HRMS: human resources, payroll and workforce management platform |
| Industry | SaaS, HR Technology |
| Market | International, with Pakistan as the first full country pack and the UAE as the first online-payments market |
| Platforms | Web app for HR, managers and admins, plus a mobile-first employee self-service portal |
| Languages | English, Arabic, Urdu and French, with full right-to-left support |
| Our Role | Product specification, design system, frontend and backend development, payroll engine, integrations, SaaS billing, testing and DevOps |
| Built For | SMEs, growing companies and multi-company groups operating in one or many countries |
The Challenge
For most growing companies, HR is a patchwork: employee files in folders, attendance from a biometric machine nobody can export from, leave approved over email, and payroll calculated in a spreadsheet that one person understands. When the company expands into another country, everything gets harder: new tax rules, statutory deductions, holidays, currencies and languages.
HR leaders shared the same frustrations:
- Disconnected tools. Attendance, leave, payroll and recruitment don't talk to each other, so data is re-typed every month.
- Payroll risk. Manual calculations invite errors in tax, deductions and overtime, and every error costs trust.
- Country complexity. Most HR software is built for one country and breaks when the business crosses a border.
- No employee self-service. Staff email HR for payslips, leave balances and letters.
- Weak control. Sensitive data such as salaries is visible to too many people, and changes aren't audited.
The goal: one HR platform that works in any country, for any company size, with payroll accuracy, strict access control and a self-service experience employees actually enjoy.
Our Approach
We designed Code Xenix HRMS from a complete written specification: one document per module covering workflows, lifecycles, routes, APIs and tests, with backend and frontend kept in step. Four principles guided the build:
- Countries as data, not code. Identity documents, statutory deductions, tax tables, holidays, minimum wages, payment files and address formats come from country packs, so a new country doesn't mean a new product.
- Permissions, plans and fields, all enforced on the server. Roles are bundles of fine-grained permissions, plans unlock modules, and sensitive fields such as salary are never sent to people who shouldn't see them.
- Employees first. A mobile-first self-service portal that works on a 360-pixel phone screen.
- Quality you can measure. Automated tests, an API contract check and a performance budget run on every change.
The Solution
Organisation Structure
- Multiple companies under one account, each with its own country, currency and timezone.
- Departments, designations, locations and reporting lines, with a clear organisation structure.
- Every tenant gets its own secure web address.
Employee Management
- Complete employee records: personal details, identity documents, contracts, bank accounts and emergency contacts.
- Country-specific fields, such as national ID formats, driven by the country pack.
- Bulk employee import from a downloadable template, with validation.
- Field-level privacy: salary and other sensitive data are visible only to authorised roles, such as the payroll office, and are hidden completely from everyone else.
Onboarding
- Onboarding checklists and tasks for every new hire, assigned to HR, IT, managers and the employee.
- Progress tracking until every step is complete.
Documents
- A secure document library for contracts, letters, policies and employee files.
- Document expiry tracking, so visas, licences and IDs are renewed on time.
Attendance and Time
- Biometric device integration: attendance machines push punches straight to the platform.
- Daily attendance records calculated automatically from punches.
- Regularisation requests for missed or incorrect punches, with manager approval.
- Attendance periods that lock before payroll, so time data can't change after pay is calculated.
Shifts
- Shift definitions and rosters for day, night and rotating schedules.
- Shift assignment for teams and individuals, feeding attendance and overtime.
Leave Management
- Configurable leave types and policies, with accruals and balances.
- Leave requests with multi-step approval.
- Public holiday calendars for each country.
- Live leave balances for employees and managers.
Payroll Engine
- Multi-country payroll with each country's statutory deductions, tax tables, minimum wages and overtime rules.
- Multi-currency salaries with managed exchange rates.
- Payroll runs with review, approval and locking. Blockers, such as unlocked attendance periods, are flagged before a run can close.
- Payslips for every employee in the self-service portal.
- Bank payment files in each country's format.
- Payroll journals posted to accounting: QuickBooks, Odoo or SAP.
- On Enterprise, US payroll tax calculated through Vertex.
Expenses
- Employees submit expense claims with receipts.
- Approval workflows and reimbursement through payroll.
Assets
- Track company assets such as laptops, phones and vehicles, along with who holds them.
- Asset assignment and return during onboarding and exit.
Recruitment
- Job openings and candidate pipelines.
- Applications, interview stages and hiring decisions.
- Hired candidates become employees in one step.
Performance
- Performance review cycles, goals and evaluations.
- Manager and employee assessments with a full history.
Training
- Training programmes and sessions, with enrolment and completion tracking.
Approval Workflows
- A configurable workflow engine for multi-step approvals across leave, expenses, regularisations, payroll and more.
- Shared approvals inbox, so managers see everything waiting for them in one place.
Employee Self-Service Portal
A mobile-first portal for every employee, on phone or desktop:
- Payslips, leave balances and requests.
- Attendance and regularisations.
- Expense claims and documents.
- Personal profile updates.
Dashboard and Reports
- A role-aware dashboard: each person sees the widgets their permissions allow.
- A reports library across people, time, pay and more, with exports.
Notifications
- In-app, email and SMS notifications for approvals, requests and reminders.
- Monthly SMS allowance included with every plan. On Enterprise, companies can use their own SMS provider (Infobip, Twilio or Unifonic).
Integrations and Single Sign-On
- API keys and signed webhooks for the customer's own developers.
- Accounting and ERP connections to QuickBooks, Odoo and SAP.
- Single sign-on with Google Workspace, Microsoft Entra ID, Okta or any OpenID Connect provider.
Security and Audit
- Complete tenant isolation, with each customer's data in its own database schema.
- Fine-grained permissions in the form module, resource and action, with custom roles.
- Secure sign-in tokens that cannot be reused on another customer's workspace.
- A full audit log of every change, with history tracking on sensitive records.
Plans and Billing
- Essential, Professional and Enterprise plans, plus add-ons.
- Online subscription payments through Stripe, with PayTabs and Checkout.com for enterprise customers and bank transfer as a fallback.
- Self-service sign-up with a new workspace ready in minutes, plus "find my workspace".
A Beautiful, Accessible Interface
- The custom Indigo Graphite design system, with light and dark themes.
- Three density settings (compact, comfortable and spacious) for data-heavy or touch-friendly work.
- A built-in help system, tooltips and clear feedback messages.
- Full right-to-left layout for Arabic and Urdu.
Engineering Highlights
Schema-per-tenant SaaS. Each customer gets its own PostgreSQL schema, selected by their web address, so data separation is built into the database.
Country packs as data. Tax tables, statutory rates, holidays, minimum wages, overtime floors and payment-file formats live as reference data. That lets the same product serve Pakistan, the Gulf and beyond.
Three layers of access control. Permissions, plan modules and field-level filtering are all enforced by the backend. The interface only decides what to display.
Typed end to end. The frontend's API types are generated directly from the backend's OpenAPI contract, and the build fails if they drift.
Measured performance. A 280 kB size budget for the employee portal's first load is enforced in CI, so self-service stays fast on mobile networks.
Tested thoroughly. Unit, component and integration tests on the frontend; backend tests, import contracts and type checks; API contract testing; and end-to-end browser journeys for every module, run against a separate demo company on each plan.
Technology Stack
| Area | Technology |
|---|---|
| Frontend | React, TypeScript, Vite, Tailwind CSS 4, shadcn/ui, TanStack Query, React Hook Form, Zod |
| Backend and API | Python 3.13, Django 5.2 LTS, Django REST Framework, OpenAPI |
| Multi-Tenancy | Django Tenants (schema per tenant) |
| Database and Cache | PostgreSQL, Redis |
| Background Jobs and Real-Time | Celery, Django Channels |
| Authentication | JWT, OpenID Connect single sign-on |
| Payments | Stripe, PayTabs, Checkout.com |
| Integrations | QuickBooks, Odoo, SAP, Vertex, Infobip, Twilio, Unifonic, biometric devices |
| Localisation | English, Arabic, Urdu, French; multi-currency and multi-timezone |
| Testing | Vitest, React Testing Library, MSW, Playwright, pytest, Schemathesis, Storybook |
| Infrastructure | Docker, Nginx, GitHub Actions |
The Outcome
- One platform for the whole employee lifecycle: onboarding, attendance, leave, payroll, performance and exit, all in one place.
- Accurate payroll: statutory rules, tax tables and locked attendance periods reduce payroll errors.
- Ready for any country: country packs, multi-currency and four languages, including right-to-left.
- Less work for HR: self-service payslips, leave and expenses replace a stream of HR emails.
- Strong data protection: isolated tenants, field-level privacy and a complete audit log.
- Connected to the business: accounting, single sign-on, SMS and biometric devices integrate seamlessly.
- A product people enjoy using: a polished, accessible interface with themes and density options.
Why It Matters
Code Xenix HRMS shows what Code Xenix does best: turning a deeply regulated, data-sensitive domain into a clean, reliable product that scales across countries. From payroll engines and multi-tenant security to integrations and a carefully crafted design system, we build software that businesses trust with their people and their money.
Have a project like this in mind?
Let's build something great together. Reach out to our experts today.