P059 / Finance & Accounting
Accounting Billing QA & Exception Monitoring System
Working prototype · synthetic accounting data
A review-first accounting control prototype that reads Xero Demo invoices and completed-work records, applies deterministic matching, and persists potential billing exceptions. Its public dashboard is a separate read-only synthetic demonstration.

Project overview
Business problem
Completed work, invoice status, and accounting reviews often live in separate tools, making unmatched work and overdue or discrepant invoices hard to trace.
Implemented approach
Four staged n8n workflows ingest source records, match work to invoices using strict one-to-one rules, and publish stable, reviewable exception records to PostgreSQL. Accounting decisions remain with people.
System & workflow
Workflow architecture
- 01
Xero Demo + work log
- 02
WF01 / WF02 source sync
- 03
PostgreSQL snapshots
- 04
WF03 exact matching
- 05
WF04 exception detection
- 06
Separate synthetic dashboard
What it does
Key capabilities
- Read-only Xero Demo invoice retrieval and validated completed-work ingestion
- Stable IDs, source hashes, run records, and repeat-safe PostgreSQL writes
- Exact-reference, reciprocal one-to-one work-to-invoice matching
- Detection of unbilled work, overdue invoices, amount differences, and ambiguous links
- Separate detection and human-review states with evidence-change re-review
Project evidence
Workflow screenshots
Project evidence
Application screenshots
Evidence & limits
Testing and reliability
- Backend tests covered source synchronization, matching, repeated exception refresh, review-state preservation, and zero-candidate batches.
- The public Next.js dashboard passed 19 automated tests and uses five synthetic exceptions.
- Automatic clearing after a complete n8n evaluation and a live private dashboard connection are not implemented.
Planned work
Future roadmap
These items are planned, not implemented capabilities.
- Add guarded automatic clearing, source-completeness checks, scheduling, retries, and stale-run recovery.
- Build authenticated reviewer actions and a private connection only for a separately authorized accounting-firm pilot.
- Measure outcomes during a real pilot; no financial savings or revenue recovery are claimed here.
Supporting documents