runbookify
← All plans
Accounting & Finance / Accounts Receivable & Collections

Invoice Generator from a Billing Sheet: Stop Hand-Building Invoices Every Month

Turn a messy billing sheet — timesheets, milestones, usage, or a recurring contract list — into draft invoices with line items and tax, get your billing lead to approve each one, then assign sequential invoice numbers and export CSV/PDFs and email them via Resend.

IntermediateA weekendBuilds onNext.jsSupabaseResend
What you'll build

A web tool where you import your billing sheet, AI assembles draft invoices with line items and tax per customer, your billing lead reviews and approves each one, and only then does the tool assign sequential invoice numbers and export invoice CSV/PDFs and email them to customers.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • A billing sheet CSV (customer, item/hours, rate, period, terms)
  • A customer master with billing details (tax, PO, terms, email)
  • Claude Code or any AI coding agent

The problem this kills

At the end of every billing cycle, someone on your team becomes an invoice machine. They open the billing sheet — hours from timesheets, a list of milestones that hit, metered usage, or the standing recurring contracts — and start building invoices one customer at a time. They look up each customer's rate, tax treatment, PO number, and payment terms, copy the right lines onto an invoice, do the tax math in their head or in a side cell, paste in the next invoice number from a running list, and repeat. Twenty, fifty, a hundred times.

It's slow, it's error-prone, and the mistakes cost real money: a line billed at last year's rate, tax applied to a customer who's exempt, a missing PO that gets the invoice bounced back, the same project billed twice because two people worked the sheet, or — the classic — a skipped or reused invoice number that throws off the whole AR ledger. You don't need to live this way, and you don't need to be a developer to fix it.

What you'll build

A simple internal web tool. You import two things: your billing sheet (customer, item or hours, rate, period, contract terms) and your customer master (billing details, tax treatment, PO, payment terms, email). The tool groups the billing lines by customer and period, builds a draft invoice for each with proper line items, applies the right tax and terms per customer, and carries the PO reference through. It shows your billing lead a clean draft-invoice worklist — every invoice with its lines, subtotal, tax, total, and any flags (missing rate, missing PO, possible double-bill). The lead reviews, fixes, and clicks Approve. Only then does the tool assign sequential invoice numbers (never skipped, never reused), render invoice PDFs, produce an AR export CSV, and email the invoices to customers via Resend.

What's inside the Implementation Plan

The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — what your billing sheet actually looks like, whether you bill hourly, fixed-fee, recurring, or all three, how your customer numbers and invoice numbers are formatted, how tax and PO and terms vary per customer, your typical and peak invoice volumes, and the messy edge cases that bite you — and then it tailors the data model, the tax and numbering logic, and every later step to your answers. This is not a generic template; the agent reflects a short spec back to you and waits for your thumbs-up before it builds anything. From there it walks the agent through the import, the draft-invoice build, the per-customer tax/PO/terms rules, the review-and-approve screen, sequential numbering, the PDF and CSV export, and the customer email send — each step with a ready-to-copy prompt. There's also a fallback so you can build the whole thing today even with no API to your accounting or AR system.

The governance it includes (this is the point)

This is real billing tooling, so it ships with the controls a finance team needs: login so only your team can use it, row-level security so you only ever see your own organization's customers and invoices, a complete audit trail of who built, edited, approved, numbered, and sent which invoices and when, a hard human-approval gate so no invoice is numbered or sent until your billing lead signs off, and duplicate guards keyed on customer + period + source line so the same work can't be billed twice. Invoice numbers are assigned in one atomic, gap-free sequence so you can never skip or reuse one.

Who it's for

Billing coordinators, AR clerks, controllers, and ops leads at services firms, agencies, and subscription businesses who assemble invoices by hand each cycle. If you can describe how your shop decides what to bill and how your invoice numbers work, you can build this.

You've got this — start with the plan, paste the first prompt, answer the interview, and you'll watch your draft invoices assemble themselves the same afternoon.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.