Financial Planning System (FPS)
Project summary
The Financial Planning System (FPS), also called MAP (Management Accounting Planning), is the main financial planning and cost management tool for the Animal and Plant Health Agency (APHA), a Defra group organisation. It plans the annual cost of delivering scientific and veterinary services across government and externally funded programmes — staff time, laboratory tests, animal usage and exceptional spend at project level — then compares those plans against actuals from the corporate PACT time-recording and finance system.
FPS began as a desktop database application. It has been modernised into a web application that meets Defra software development standards and GDS design principles. Authorised users now reach the service from any supported browser, with no desktop install.
The rebuild reproduces all 20 feature areas — project cost planning, programme management, resource and charge-rate management, laboratory services, plan-vs-actual reporting, snapshots, audit and administration — with 94.5% line coverage across 122 tests.
| At a glance | |
|---|---|
| Service | Financial Planning System (FPS) / MAP |
| Organisation | Animal and Plant Health Agency (APHA), Defra group |
| Users | Programme Managers, Resource Managers, Lab Services Managers, Finance and Budget Analysts, Management Accountants, Administrators, Standard Users |
| Status | In delivery |
As-is
FPS was a desktop database application with its business logic embedded in macro code behind form-based screens. The user interface and the calculations were tightly coupled, so the application was hard to test, risky to change and impossible to audit for security or accessibility.
It ran only on managed desktops with the database software installed — around 80 screens across 18 functional areas, covering the full planning lifecycle from creating a project to programme-level profitability reporting.
Key pain points:
- Desktop-only — needed a managed desktop with the database software installed; no browser or remote access.
- No automated testing — a macro change could silently break a calculation elsewhere.
- Poor accessibility — the form-based desktop UI did not meet WCAG 2.2 AA.
- Weak access control — no identity provider or role-based policies; access relied on file permissions.
- Hard to maintain — logic tied to UI event handlers, with no separation of concerns.
- No observability — no structured logging, telemetry or real audit trail.
To-be
The target is a cloud-hosted web application, reached from any supported browser and backed by a managed relational database. Infrastructure is defined as code.
- Accessibility and design — the GOV.UK Design System is used for every component, so the service meets GDS style and WCAG 2.2 AA. Accessibility is an acceptance criterion, not a retrofit.
- Security — authentication uses the organisation’s corporate identity provider over a standard single sign-on protocol; policy-based authorisation scopes each user to their assigned profit centres, programmes, categories, test owners and project groups. Secrets stay out of the codebase.
- Testability — automated coverage exceeds the Defra 90% threshold, across unit, UI component and integration tests.
- Observability — application telemetry and structured logging are wired in from the start.
- Resilience — the app applies database migrations and seed data on startup, so a new environment needs only a connection string.
The domain model and business logic are reproduced faithfully, preserving every bounded context: project cost planning, programme and contract management, resource and charge-rate management, laboratory services, plan-vs-actual comparison, snapshots, access control, reference data, audit, and department income and surveillance reporting.
Steps taken
-
Analysed the legacy system — reverse-engineered the legacy application and database into four analyses (domain, application, database, interaction), capturing every actor, term, entity, screen and business rule.
-
Produced a PRD — synthesised the analyses into a Product Requirements Document defining actors, domain model, bounded contexts and acceptance criteria.
-
Decomposed into features — broke the PRD into 20 traceable feature tickets (FT-001 to FT-020), each with acceptance criteria mapped to tests, giving a no-silent-loss chain from screen to test.
-
Rebuilt the application — built on a modern web framework with an object-relational mapper in a layered architecture, converting macro event logic into testable services.
-
Applied GDS standards — integrated the GOV.UK Design System: Tudor Crown header, GOV.UK footer, service navigation, GDS Transport font, skip link and accessible tables.
-
Baked in WCAG 2.2 AA — enforced one
<h1>per page, ordered headings, labelled controls, error summaries, 24×24 px targets and visible focus styles in the component library. -
Built the test suite — wrote 122 unit, component and integration tests, reaching 94.5% line coverage.
-
Added an accessibility audit — an automated script runs WCAG 2.2 AA checks across all pages, ready for the delivery pipeline.
-
Infrastructure as code — infrastructure templates provision the environment consistently.
Benefits, outcomes and success metrics
Evidence-based outcomes of the rebuild are shown below.
| Benefit / outcome | Evidence / metric | Status |
|---|---|---|
| Moved off a desktop-only database tool onto a supported, browser-based platform | The service is a cloud-hosted web application reached from any supported browser, with no desktop install | Achieved |
| Automated test coverage introduced where there was none | Coverage report (09/07/2026) shows 94.5% line coverage across 122 unit, component and integration tests, exceeding the 90% target | Achieved |
| No loss of capability | All 20 feature areas reproduced, from project cost planning through to programme profitability, decomposed into traceable feature tickets FT-001 to FT-020 | Achieved |
| Standards-compliant, accessible user interface | GOV.UK Design System with the Tudor Crown header, GOV.UK footer, GDS Transport font, skip link and accessible tables verified in the codebase; an automated script runs WCAG 2.2 AA checks across all pages | Achieved |
| Lower risk of inappropriate access to financial data | Corporate single sign-on with policy-based, per-user data scoping replaces reliance on file permissions | Achieved |
| Stronger financial governance and auditability | A structured audit trail and application telemetry provide traceability that the desktop tool could not | Achieved |
Lessons for reuse
Other teams modernising a similar legacy application can reuse the following patterns:
- Analyse the legacy system into structured analyses first. Analysing the legacy application and database into domain, application, database and interaction analyses captured every actor, term, entity, screen and business rule before any rebuild began.
- Decompose into small, traceable features. Breaking the PRD into 20 feature tickets (FT-001 to FT-020) with acceptance criteria mapped to tests gives a no-silent-loss chain from screen to test.
- Convert UI-coupled logic into an isolated, testable layer. Moving macro event-handler logic into services in a layered architecture makes the business rules unit-testable and protects them during the UI rewrite.
- Adopt the GOV.UK Design System from the start — header, footer, fonts and accessible components — rather than retrofitting accessibility later.
- Automate the accessibility audit. An automated script running WCAG 2.2 AA checks across all pages keeps accessibility verifiable in the delivery pipeline.
- Make environments reproducible. Applying migrations and seed data on startup, with infrastructure-as-code, means a new environment needs only a connection string.