Government Budget Tracker — User Guide

Republic of Botswana · FY 2026/27

About the System Getting Started Admin / VP Finance Officer Ministry Official Viewer Drug Reorder Critical Alerts Common Features FAQ ⬇ Download This Guide
← Back to App

About the System

Purpose

The Government Budget Tracker is a comprehensive digital platform designed for the Republic of Botswana to manage national budget allocations, track expenditure across all ministries, and monitor public service delivery in health, education, and national identity systems. It provides real-time visibility into government spending, enabling data-driven decision-making and transparent governance.

Architecture

The system is built on Cloudflare's edge computing platform, ensuring fast access from anywhere in the world with enterprise-grade security and reliability.

Cloudflare Workers D1 Database R2 Object Storage Resend Email Hono Framework Cloudflare Cron Triggers

Cloudflare Workers

Serverless compute platform that runs the application at the edge — closest to the user. No cold starts, global deployment.

D1 Database

SQLite-based serverless database for storing ministries, budget items, transactions, users, and all system data.

R2 Object Storage

Stores supporting documents attached to transactions — receipts, invoices, and other financial records.

Resend Email

Handles email delivery for user registration verification codes, drug reorder requests, and critical stock alerts via the verified domain.

Cloudflare Cron Triggers

Automated scheduled tasks — runs the critical drug stock check daily at 10:00 AM Botswana time and sends email alerts to admins and ministry officers.

Modules

The system consists of the following integrated modules:

ModuleDescription
DashboardNational budget overview with KPIs, spending trends, ministry allocation bars, and budget alerts
ExecutiveCross-government snapshot for leadership — budget, health, education, and e-ID summaries with ministry drill-down
MinistriesManage all government ministries — add, edit, delete, associate/disassociate ministers
Budget ItemsCreate and track budget allocations per ministry with categories, fiscal years, and utilisation tracking
TransactionsRecord financial transactions (expenditure, commitments, virements, refunds) with supporting documents
HealthHealth Command Center — facilities, disease surveillance, drug supply chain with reorder workflow, health workforce, patient records
EducationSchools, exam results, teachers, school feeding programme, and e-learning usage tracking
e-IDNational electronic identity registry — issue e-IDs, process applications, verify identities
Citizen PortalPublic-facing page (no login) for citizens to verify e-IDs and check application status
Audit LogComplete trail of all administrative actions — registrations, updates, deletions, permission changes
UsersUser management — register users, assign roles, enable/disable accounts
Access ControlDynamic permission management — admin controls what each role can do without code changes

Security

The system implements multiple layers of security:

Version

Current Version

v1.7.0

Release Date

October 2026

Production URL

https://bw-gov-ministries-portal.cloudcomputeinternational.com

Source Code

GitHub — github.com/gtnkwamba/gov-budget-tracker

Getting Started

Registration

  1. Go to the login page and click Register
  2. Enter your full name and government-issued email (must end in @gov.bw)
  3. Choose a password (minimum 6 characters)
  4. Select your role:
    • Viewer — read-only access
    • Ministry Official — requires selecting your ministry
  5. Click Register — a 6-digit verification code is sent to your email
  6. Enter the code in the 6 boxes provided
  7. Once verified, you are automatically logged in
Note: The first user to register automatically becomes the Admin. Subsequent users can only self-register as Viewer or Ministry Official. Admin, VP, and Finance Officer roles are assigned by an admin via the Users tab.

Login

  1. Enter your @gov.bw email and password
  2. Click Login
  3. Your session lasts 7 days

Logout

Click Sign Out in the top right corner at any time.

Admin & Vice President Guide

Admin / VP — Full Access

Admins and Vice Presidents have full access to all features.

Tabs Available

TabPurpose
DashboardOverview of national budget, spending trends, and alerts
ExecutiveCross-government snapshot with ministry drill-down
MinistriesManage ministries — add, edit, delete, associate ministers
BudgetManage budget items across all ministries
TransactionsRecord and view all financial transactions
HealthManage health facilities, outbreaks, drug supply with reorder workflow, workforce
EducationManage schools, exams, teachers, feeding programmes
e-IDManage citizen registry and e-ID applications
Audit LogView all system activity logs including reorder and critical drug alerts
UsersManage user accounts, roles, and ministry assignments
Access ControlConfigure role permissions — toggle what each role can see and do

Managing Ministries

Add a Ministry

  1. Go to the Ministries tab
  2. Click + Add Ministry
  3. Fill in: Name, Short Name, Minister, Permanent Secretary, Allocation, Fiscal Year
  4. Click Create Ministry

Edit a Ministry

  1. Click Edit on the ministry row
  2. Update any field
  3. Click Save Changes

Delete a Ministry

  1. Click Delete on the ministry row
  2. Confirm deletion
Warning: This also deletes all associated budget items and transactions — cannot be undone.

Associate / Remove a Minister

Managing Budget Items

  1. Go to the Budget tab
  2. Click + Add Budget Item
  3. Select the ministry, category, description, allocation amount, and fiscal year
  4. Click Create Budget Item

Filter by ministry using the dropdown at the top.

Recording Transactions

  1. Go to the Transactions tab
  2. Click + Record Transaction
  3. Select the budget item, transaction type, and amount
  4. Optionally add a description, reference number, and supporting document
  5. Click Record Transaction

Transaction types:

Managing Users

  1. Go to the Users tab
  2. View all registered users
  3. Change a user's role using the dropdown
  4. Assign a ministry to ministry officials
  5. Enable/Disable user accounts
  6. Click Save to apply changes

Audit Log

The audit log records all administrative actions:

e-ID Management

Issue a new e-ID

  1. Go to the e-ID tab
  2. Click + Issue e-ID
  3. Enter the e-ID number, full name, date of birth, gender, and district
  4. Click Issue e-ID

Process Applications

  1. View applications in the e-ID Applications table
  2. Click Approve or Reject on pending applications
  3. For approved applications, click Issue to generate the e-ID

Capture Applications

  1. Click + New Application
  2. Fill in applicant details (name, type, DOB, gender, district, phone, notes)
  3. Click Submit Application

Finance Officer Guide

Finance Officer — Read + Approve

Finance Officers have read-only access to most views, with the ability to approve or reject e-ID applications.

Tabs Available

TabPurpose
DashboardView national budget overview
MinistriesView all ministries (read-only)
BudgetView all budget items (read-only)
TransactionsView all transactions (read-only)
HealthView health system data (read-only)
EducationView education data (read-only)
e-IDView e-ID registry, approve/reject applications

What You Can Do

What You Cannot Do

Ministry Official Guide

Ministry Official — Own Ministry + Capture

Ministry Officials have read-only access to most views, scoped to their own ministry only, with the ability to capture e-ID applications.

Tabs Available

TabPurpose
DashboardView national budget overview
MinistriesView your ministry only (read-only)
BudgetView your ministry's budget items only (read-only)
TransactionsView your ministry's transactions only (read-only)
HealthView health system data (read-only)
EducationView education data (read-only)
e-IDView e-ID registry, capture applications

What You Can Do

What You Cannot Do

Viewer Guide

Viewer — Read-Only

Viewers have read-only access to public-facing data.

Tabs Available

TabPurpose
DashboardView national budget overview
MinistriesView all ministries (read-only)
BudgetView all budget items (read-only)
HealthView health system data (read-only)
EducationView education data (read-only)
e-IDView e-ID registry, verify e-IDs

What You Can Do

What You Cannot Do

Drug Reorder Workflow

Overview

When drug stock levels fall below the minimum required threshold, the system enables authorised users to place reorders directly with suppliers. The reorder process captures supplier details, quantity, urgency, and sends a formatted email to the supplier — all actions are logged in the audit trail.

Who Can Place Reorders

Finance Officers and Viewers cannot place reorders — they can only view the drug supply status.

Placing a Reorder

  1. Go to the Health tab
  2. Scroll to the Drug Supply Status table
  3. Drugs with non-OK status show a Reorder button in the Action column
  4. Click Reorder — a modal opens showing the drug details (name, category, current stock, minimum required, days cover, current supplier)
  5. Fill in the reorder form:
    • Supplier Name — the supplier to contact
    • Supplier Email — where the reorder email will be sent
    • Quantity — number of units to order
    • Unit — units, boxes, vials, etc.
    • Urgency — Normal, Urgent, or Critical
    • Notes — optional delivery deadline or special instructions
  6. Click Send Reorder to Supplier
  7. The system:
    • Creates a reorder record in the database
    • Sends a formatted HTML email to the supplier with all drug and reorder details
    • Logs the reorder creation in the audit trail
    • Logs the email send result (sent or failed) in the audit trail
  8. A confirmation alert shows the reorder number and email status
Separation of Duties: The person who places the reorder cannot approve it. The system records who placed the reorder, when it was placed, and whether the supplier email was successfully delivered.

Reorder Statuses

StatusMeaning
PendingReorder created, email not yet sent
Email SentSupplier email successfully delivered
Email FailedSupplier email could not be delivered — check the audit log for details
DeliveredSupplier confirmed delivery of the reordered stock
PartialSupplier delivered part of the order
CancelledReorder was cancelled

Critical Drug Stock Alerts

Automated Daily Alerts

The system automatically checks all drug stock levels every day at 10:00 AM Botswana time (8:00 AM UTC). If any drugs are at critical status, the system sends an email alert to all active admins, vice presidents, and ministry officials.

What the Alert Contains

Who Receives Alerts

Audit Trail: Every automated alert is logged in the audit trail with the number of critical drugs found and the number of emails sent. You can review these in the Audit Log tab — look for actions tagged critical_drug_alert.

Manual Trigger

Administrators can manually trigger the critical drug check at any time by accessing the system's cron endpoint. This is useful for verifying that alerts are working or for checking stock levels outside the scheduled time.

Common Features

Dashboard

The dashboard provides a national overview:

Auto-Refresh

All dashboards and tables automatically refresh every 30 seconds to display the latest data. When you switch tabs, the refresh timer resets to align with the new tab. This ensures you always see the most current information without manually reloading the page.

Scrollable Tables

All major tables in the system feature scrollable bodies with fixed headers:

Column headers remain visible at the top while you scroll through hundreds of rows. Each table also displays a TOTAL row at the bottom summing all numeric columns.

Ministry Filters

The following tabs have filter dropdowns to narrow the view:

Select a filter from the dropdown to instantly narrow the table. The filter persists until you change it or switch tabs.

e-ID Verification

Any user can verify an e-ID:

  1. Go to the e-ID tab
  2. Enter an e-ID number in the verification box (e.g., BW-2018-001234)
  3. Click Verify
  4. The system shows whether the ID is valid, the holder's name, date of birth, status, and expiry date

Search Citizens

Any user can search the e-ID registry:

  1. Go to the e-ID tab
  2. Type a name or e-ID number in the search box
  3. Results appear in the citizens table

Email Verification

All registrations require email verification:

  1. Fill in the registration form
  2. A 6-digit code is sent to your @gov.bw email
  3. Enter the code in the 6 boxes
  4. You can paste the entire code — it splits across boxes automatically
  5. Codes expire after 10 minutes
  6. Click Resend Code if you did not receive it
  7. Click Back to Form to return to the registration form

Frequently Asked Questions

Q: Can I register without a @gov.bw email?

No. Only government-issued email addresses ending in @gov.bw are accepted.

Q: I did not receive my verification code. What do I do?

Check your spam folder. If still not found, click Resend Code. Codes expire after 10 minutes.

Q: How do I get Admin, VP, or Finance Officer access?

These roles are assigned by an existing Admin or VP through the Users tab. You cannot self-register as these roles.

Q: Can I see data from other ministries?

Only Admins, VPs, Finance Officers, and Viewers can see all ministries. Ministry Officials can only see their own ministry's data.

Q: What happens when a ministry is deleted?

All budget items and transactions associated with that ministry are permanently deleted. This action cannot be undone.

Q: How long does my login session last?

7 days. After that, you will need to log in again.

Q: Can I upload supporting documents with transactions?

Yes. When recording a transaction, you can attach a supporting document file.

Q: How do drug reorders work?

When a drug's stock falls below the minimum required level, authorised users (Admins, VPs, Ministry Officials) see a Reorder button in the Drug Supply Status table. Clicking it opens a form where you enter supplier details, quantity, and urgency. The system sends a formatted email to the supplier and logs everything in the audit trail.

Q: Who gets notified about critical drug stock levels?

The system automatically checks drug stock levels every day at 10:00 AM Botswana time. If any drugs are at critical status, an email alert is sent to all active admins, vice presidents, and ministry officials. The alert lists each critical drug with stock levels and days of cover remaining.

Q: How often do the dashboards refresh?

Every 30 seconds. The currently active tab's data is automatically reloaded. When you switch tabs, the timer resets.

Q: What are the TOTAL rows at the bottom of tables?

Tables with numeric columns (allocations, expenditure, stock levels, etc.) display a TOTAL row at the bottom that sums all values. The row count is shown in the label (e.g., "TOTAL (18 ministries)").

Q: Can I filter data by ministry?

Yes. The Budget Items and Transactions tabs have a ministry filter dropdown. The Health Workforce tab has a profession filter, and Health Facilities has a district filter. Select a value to narrow the table instantly.

← Back to App