From 5fe4bf9f58ccc6d9b8ec6b4bb6a4e4c8ae918218 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 3 Aug 2026 22:56:21 -0500 Subject: [PATCH] buildTable: add Balance After column showing per-entry running_balance --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index 0da8e59..2793603 100644 --- a/functions.php +++ b/functions.php @@ -183,11 +183,16 @@ function buildTable () { $amount = number_format($amount, 0); // Format the amount as an integer + $runningBalance = isset($entry['running_balance']) && $entry['running_balance'] !== null + ? '$' . number_format((int)$entry['running_balance'], 0) + : '—'; + echo ''; echo ''.$user.''; echo ''.date("F j, Y / H:i", $timestamp).''; echo ''.$description.''; echo ''.$sign.$amount.''; + echo ''.$runningBalance.''; echo ''; } }