Ledgeline Invoicer
Ledgeline Invoicer is a separate, optional app. You don’t need it to use Ledgeline. It has its own download, and it works on the same books folder and journal as Ledgeline.
The invoicer writes your invoices, turns them into PDFs, and books them into the hledger journal that Ledgeline reads. It uses the same theme as Ledgeline.
Every invoice is a markdown file in your books folder, and so is every customer. You can open them in any text editor, keep them in git, or search them with grep. The money is recorded in the journal as ordinary hledger transactions, so hledger and Ledgeline report on your invoices without any extra step.
What it does
- Writes invoices with a bill table that does its own arithmetic: quantities, rates, discounts, subtotals, sales tax and deposits.
- Keeps drafts out of the books. An invoice touches the journal only when you send it.
- Books a sent invoice the way your books work: in accrual books, a receivable and revenue on the invoice date; in cash books, revenue when the payment arrives.
- Notes on each invoice whether it has been paid, partly paid or not, by reading the payments in your books.
- Exports a PDF through a template you can change, and keeps a copy of every final PDF it exports.
- Shows what you are owed on a dashboard: what is overdue, how old it is, and what came in recently.
- Tracks your time in hledger timedot files and bills it. See Time tracking.
- Does almost everything from the command line too, so you can script it.
Getting it
macOS. Download LedgelineInvoicer-<version>-arm64.dmg from the latest GitHub release, open it and drag Ledgeline Invoicer to Applications. It is signed and notarized. It runs on Apple silicon Macs only; on an Intel Mac, use Nix or Cargo below.
Windows (x64 and Arm). Download LedgelineInvoicer-<version>-windows-x64.msi (most PCs) or -windows-arm64.msi (Arm PCs) from the latest GitHub release and run it. It installs for your user only. The installers aren’t signed yet, so SmartScreen says “Windows protected your PC”. Choose More info → Run anyway.
Nix (macOS and Linux). Installing Ledgeline from the flake installs the invoicer too, as the app and the ledgeline-invoicer command:
nix profile install --accept-flake-config github:zmre/ledgeline
To run it without installing:
nix shell --accept-flake-config github:zmre/ledgeline --command ledgeline-invoicer ~/books/books.journal
On macOS, nix build github:zmre/ledgeline also gives you result/Applications/Ledgeline Invoicer.app, which you can open or copy to Applications.
Cargo (Linux, Intel Macs). Without Nix, install from crates.io:
cargo install ledgeline-invoicer # the desktop window
cargo install ledgeline-invoicer --no-default-features --features server # no window, no PDF export
On Linux, the desktop build needs webkitgtk-4.1, gtk3, libsoup-3 and libxdo (Debian/Ubuntu: libwebkit2gtk-4.1-dev libgtk-3-dev libsoup-3.0-dev libxdo-dev). The build without a window serves the app to your browser. Run ledgeline-invoicer --server ~/books/books.journal and open the address it prints. Exporting a PDF needs the window.
It doesn’t need hledger installed, because it reads and writes the journal itself.
Opening your books
Give the app your books’ main journal, the same file you open in Ledgeline. The folder that journal is in is your books folder, and everything the invoicer reads or writes stays inside it.
With no journal named, the app reopens the books you used last in either app. File → Open Books… picks another journal and File → Open Recent lists the ones you’ve had open. The list is shared with Ledgeline. File → Open Sample Books opens the sample books.
From Ledgeline, Open Ledgeline Invoicer on its Invoices page opens the books Ledgeline has open here.
The sample books
To try the app before using your own books, choose File → Open Sample Books. On iPhone and iPad, Sample books is in the Invoicer’s own list. Each open writes a fresh copy, with every date moved into the current month, so feel free to change it.
On the desktop the copy lives in the app’s cache folder, in the same folder Ledgeline’s Try with sample data uses, and it goes into the recent list both apps share. Opening the sample in either app replaces that copy, including any changes you made in the other app.
The sample is Juniper Studio, a household’s side business that builds websites for small businesses:
- Home: drafts, overdue and not-yet-due invoices, recent payments, and recognition entries due.
- Invoices: eight invoices, one in each state: paid, a deposit and the final invoice it was applied to (part paid), voided and reissued, overdue, sent and not yet due, and a draft.
- Customers: four, with notes; Northwind Traders has an open purchase order with its attachment, and Maya Patel’s invoices use the Modern template.
- Library: a catalog, a payment snippet, and the Classic and Modern templates.
- To bill and Time: unbilled hours for three customers, and a contractor’s time, partly on a bill already and partly waiting on To pay.
The invoicer shares its theme and text size with Ledgeline. Change them in either app’s Settings → Appearance. A books folder pinned to a theme opens in that theme in both apps.
Getting around
The sidebar has five sections, and a Library below them:
| Section | What it holds |
|---|---|
| Home | What you are owed, what is overdue, what was paid recently. See Dashboard. |
| Invoices | Every invoice, with filters for status, customer, dates and how late it is. |
| To bill | Tracked time to bill, by customer, and contractor time to pay. Its link shows how many customers have unbilled time. See Billing time. |
| Time | Time tracking: the overview, every entry, and Track. See Time tracking. |
| Customers | The people and organizations you bill, what each owes, and their open purchase orders and, if you track time, their time accounts. |
The Library holds what invoices are made from. Click it to open or close it. It opens by itself on any of its pages, and remembers whether you left it open, in the same ui-prefs.toml as the theme.
| In the Library | What it holds |
|---|---|
| Catalog | Products and services you bill often, with their rate and the account each one books to. |
| Snippets | Reusable text such as payment instructions and terms, copied into an invoice when you insert one. |
| Templates | How invoices look on screen and on paper. See Templates. |
| Time accounts | The time account tree, linking time to customers. See Entries and accounts. |
Settings, at the foot of the sidebar, holds these books’ settings and the appearance. g , or Cmd+, opens it too. See Settings.
The New button at the top of the sidebar starts a new invoice. Its menu also offers a new customer, catalog item, snippet or template, and, once time tracking is set up, Bill time…, which opens To bill and starts Bill all…. Press ? anywhere to see the keyboard shortcuts for the page you are on.
Web and email links in notes and invoices open in your browser and mail app.
An invoice’s life
- Draft. You pick a customer and a template, fill the bill table, and save. The app copies the customer’s billing name, address, email and payment terms into the invoice, so later changes to the customer don’t change it. Nothing is booked.
- Sent. Send… marks the invoice sent and books it. You can export the PDF at the same time. If the customer takes invoices through a vendor portal, the send step shows the portal’s instructions and a button to open it.
- Paid. You record the payment the way you always do in Ledgeline, by importing or syncing your bank. The invoicer sees the payment in the books and updates the invoice to show it paid, partly paid or unpaid.
- Void, if it was a mistake. Void… reverses the booking on a date you choose and marks the invoice void. The file stays.
A sent invoice can still be edited. Saving it re-books it to match, unless its date falls in a period you have closed in Ledgeline. Booking explains each step in detail, in both accrual and cash books.
In this section
- Files and formats: the invoice, customer, catalog and snippet files, field by field, and the bill table’s rules.
- Booking: what the invoicer writes into the journal and when, deposits, voids, and how the paid status is kept up to date.
- Templates: changing how invoices look, for people who don’t write HTML.
- Dashboard: the receivables dashboard and the settings that shape it.
- Settings: the Settings page, and every invoicer setting in
ledgeline.tomlwith its default. - Keyboard shortcuts: every key, page by page.
- Command line: every command and option.
- Scripting recipes: using
grep,hledgerand the command line on your invoices. - Time tracking: tracking hours and billing them, in its own section.