Case study · 2026

UF Paie: overtime payroll

An on-premise platform for the Université de Fianarantsoa’s finance department (DAAF). It takes teaching-staff overtime (heures complémentaires) from declaration to the bank-transfer file, and replaces hand-maintained Excel workbooks.

Role
Co-developer
Year
2026
Client
Université de Fianarantsoa · DAAF
Status
In service since Oct. 2026
paie.uf.local · private network
UF Paie screens: sign-in, dashboard, versioned calculation rules and the academic-year setup assistant
  • 1,225automated tests
  • 0unexplained gaps vs. the real workbooks
  • 7Django modules, one DB schema each
  • 100%offline, on the local network

The challenge

Overtime pay for lecturers was computed in large Excel workbooks, with formulas copied from year to year, caps per grade applied by hand and the bank-transfer file (OPAVI) prepared manually. Nothing recorded who changed what, and a single wrong cell could mean a wrong payment.

The office has three users, no reliable internet and no budget for subscriptions. So the system had to run entirely offline, cost nothing to operate, and still be secure and auditable.

What we built

  • Declare → Validate → Calculate → Pay: one traceable circuit, from the teaching department up to the DAAF.
  • Exact calculation engine: lecture, tutorial and practical hours weighted ×5/3, ×1 and ×2/3 in exact fractions, then statutory obligation, a cap per grade (clip or cancel) and valuation. The rules are stored as formulas in the database, versioned per academic year and evaluated safely. Every calculation writes an immutable trace.
  • Validation workflow: a simplified or full approval chain with a four-eyes rule. A validated sheet is locked, and corrections go through regularisation.
  • Smart Excel imports: the raw file is kept, rows are matched by similarity, aliases are remembered, and templates can be downloaded.
  • Payroll & bank file: frozen payslips, transfer batches, the ministry budget envelope split, and the OPAVI file in a configurable, versioned bank format.
  • Reports: nominative statements in PDF, summaries, history and outstanding payments. Every screen exports to Excel.
  • "Prepare the year" assistant: carries coefficients, scales and rules forward, for review before they are applied.

Under the hood

A Django 5.2 modular monolith on PostgreSQL. Seven apps each own a schema, and import-linter enforces the module boundaries. Business logic lives in services, never in views. Pages are rendered on the server with no front-end build. PDFs come from WeasyPrint, and audit history from django-simple-history.

Security: accounts created in the app with provisional passwords, TOTP two-factor authentication, brute-force lockout, a strict Content Security Policy and HTTPS with a local certificate authority. It deploys to a Windows 10/11 server through WSL2. The server follows the main branch: backup, migrations, restart, health check and automatic rollback. Encrypted backups to USB run daily.

Quality: 1,225 automated tests, with ruff and mypy in CI. A replay tool runs the engine against the four real DAAF workbooks and finds zero unexplained differences. A 97-page illustrated user manual ships with it.

Stack

Application

  • Python 3.12
  • Django 5.2
  • PostgreSQL 15+
  • WeasyPrint
  • openpyxl
  • simpleeval
  • django-simple-history
  • django-axes

Quality & operations

  • pytest
  • ruff · mypy
  • import-linter
  • uv
  • gunicorn · nginx · systemd
  • WSL2 · Ubuntu 24.04
Next case studyMission Alternance