Invoices

Client Ravensworth Civil Pty Ltd
Period This Financial Year
Status All Statuses
Print Statement

Invoices

Ravensworth Civil Pty Ltd
Invoice
Total Invoiced (Inc GST)
$46,607.00
Total Paid (Inc GST)
$29,942.00
Balance Due (Inc GST)
$16,665.00
Invoice # Items Due Date Amount (Inc GST) Status Payment Date PDF
#BB-2026-0179 3 12 Jan 2026 $5,940.00 26 Jan 2026
#BB-2026-0181 2 29 Jan 2026 $3,245.00 11 Feb 2026
#BB-2026-0184 4 02 Mar 2026 $12,969.00 02 Mar 2026
#BB-2026-0188 3 04 Mar 2026 $7,788.00 19 Mar 2026
#BB-2026-0193 2 22 Mar 2026 $4,620.00 Overdue
#BB-2026-0197 5 09 Apr 2026 $9,130.00 Overdue
#BB-2026-0201 2 24 Apr 2026 $2,915.00 Outstanding
Balance Due (Inc GST): $16,665.00
Two rows on this table show a status nobody stored

Every invoice here is stored as either Paid or Outstanding, because those are the two values a person sets. Two rows nonetheless read Overdue, and that word is not written against either record. It is produced by isOverdue(), which returns false for anything already paid and otherwise compares due_date to now, at the moment the page renders.

This view was rendered on 10 April. BB-2026-0193 and BB-2026-0197 are past their due dates by then, so they show as overdue; BB-2026-0201 is not due until 24 April, so it still reads as the stored Outstanding. Load the same page on the 25th and that third row changes without a single write happening in between. Nothing can go stale and nothing has to be backfilled.

The trade is that overdue cannot be queried in the database as a stored value, which is the right side of that trade for a figure whose truth changes with the calendar. The stored status stays a statement by the operator about what they intend to chase, which is also why recording a part payment does not move an invoice into a partial state on its own.

This screen reconciles
Paid  =  5,940.00 + 3,245.00 + 12,969.00 + 7,788.00  =  29,942.00
Unpaid  =  4,620.00 + 9,130.00 (both past due on 10 Apr) + 2,915.00 (not due until 24 Apr)  =  16,665.00  balance due
Invoiced  =  29,942.00 + 16,665.00  =  46,607.00,  which is the total across all seven rows

Brontiq Books is a real, shipped product. This screen is drawn from it, and every client, contact, email, invoice number, date and figure on it is invented. Invoice BB-2026-0197 carries the same $9,130.00 here as on the invoice editor, and these three totals are the same ones the statement screen reconciles to.