Billing software looks simple from the outside: create an invoice, send it, record the payment. Underneath, it is one of the least forgiving kinds of software to build.
Tenant isolation first
Every query must be scoped to the right organisation. We enforce this at the data-access layer rather than relying on each developer to remember a filter — a single mistake here leaks one customer's data to another.
Invoice numbering is harder than it looks
Invoice numbers must be sequential, unique per tenant and per financial year, and never skip. We generate them inside database transactions with row-level locks so concurrent users never collide.
Money is never a float
All amounts are stored as integers in the smallest currency unit. Tax is calculated per line item and rounded consistently, so totals always match what is printed on the PDF.
Quotations become invoices
Construction and service businesses quote first and bill in stages. Modelling quotations, partial invoices and payments as linked documents keeps a full audit trail from first estimate to final receipt.
Reports people actually use
Outstanding receivables, project-wise billing and GST summaries are the reports that get opened every day — so we build them first and make them exportable to Excel and PDF.
Closing thought
The best billing products feel boring to use. That calm is the result of careful engineering decisions made early.
