Thabani Biyela, ACA

Thabani Biyela, ACA

Part of the collection of my work in finance automation showcasing how I use Python, SQL, JavaScript, and GCP to solve complex financial problems and build data-driven tools.

From Spreadsheets to the Cloud: Automating Revenue Accounting

MSc Computer Science Capstone Project — University of London


Overview

Large-scale digital marketplaces generate enormous volumes of financial data — and the accounting processes that support them need to keep up. This project examined that challenge first-hand, diagnosing a fragmented, spreadsheet-heavy operation inside a platform processing hundreds of millions of transactions annually, and delivering a working cloud-based solution to modernise and automate it.

The project was implemented within the platform accounting team at a leading online food delivery platform operating across 17 countries and processing 140+ million orders in 2024. Each order generates multiple financial microtransactions — all of which must be accurately captured, enriched, reconciled, and reported to the general ledger.

The team’s existing system relied on a combination of a bespoke ETL script, a customised accounting integration, and extensive manual spreadsheet work to fulfil its responsibilities across journal entries, reconciliations, audit support, and stakeholder reporting. Manual processes increased turnaround times, introduced risk of error, and were not scalable given the size and complexity of the datasets involved.

Approach

Following an enterprise architecture gap analysis (TOGAF framework), three work packages were defined to migrate the team from a monolithic, manual workflow to a modular, automated cloud system:

System Architecture

Results

Process Before After
Journal entry (per account) ~60 minutes < 5 minutes
Reconciliation (per account) ~180 minutes < 5 minutes
Annual labour saving — 390+ hours

Stack: Python · SQL (dbt) · JavaScript · Google BigQuery · Google App Scripts · Google Looker Studio · JupyterLab · SQLite · Git


Documentation

   
📋 Full Project Report Business context, architecture decisions, and results in depth
🗄️ Data Model dbt project structure, transformation layers, SQL patterns, and data quality testing
⚙️ Workflows Google App Scripts — automated data extraction and continuous monitoring
💻 CLI Application Python package design, OOP architecture, and command reference
📊 Stakeholder Reporting Looker Studio dashboards — design, data model, and key metrics

The Data Model

Built in Google BigQuery and powered by dbt, the data model transforms raw event-level platform transaction data into structured, auditable financial data through five sequential layers.

Raw Transactions → Staging → Intermediate → Enrichment → Aggregation → Presentation

Revenue is processed across two streams — B2C consumer delivery fees and B2B partner invoicing — each with dedicated staging, intermediate, and aggregation models. Data quality assertions are materialised as BigQuery tables and evaluated daily by an automated monitoring workflow.

View full data model documentation →


The CLI Application

gforevpy is a Python CLI package that connects the platform accounting team directly to BigQuery data. It automates the end-to-end production of journal entry files, reconciliation workbooks, and audit-ready HTML reports.

# Produce journal entry for August 2025 — Commission Revenue
gforevpy journal 2025 8 1

# Produce reconciliation workpaper for August 2025 — account 4100
gforevpy reconciliation 2025 8 4100

The application is built around an abstract base class Process, with concrete implementations for journal (ProcessMECJournal) and reconciliation (ProcessRecon) workflows. This OOP design makes the system both testable and extensible.

View full CLI documentation →


Automated Workflows

Two Google App Scripts workflows run on scheduled triggers without manual intervention:

  1. Accounting Data Extraction — Pulls posted journal lines from Workday into BigQuery via REST API, per company entity, on a time-to-close schedule
  2. Continuous Monitoring — Runs data quality assertions daily; materialises BigQuery tables if all checks pass, or sends an alert email if any fail

View full workflow documentation →


Stakeholder Reporting

Interactive dashboards built in Google Looker Studio replace ad hoc email requests with self-service, on-demand reporting. Connected directly to the BigQuery data model, each dashboard delivers:

View BI documentation →


📄 Read the full project report →