GitHub
Invoicer settings

Invoicer settings

The Settings page holds everything you can change about how the invoicer works with your books. It has two tabs. These books holds the settings of the books you have open, and Appearance holds the theme and text size, which are shared with Ledgeline.

These books’ settings are kept in ledgeline.toml, the file beside your main journal that Ledgeline also reads. You never have to open that file, but you can. In the settings file lists every setting as the file writes it.

Opening Settings

Any of these opens the Settings page:

On the page, 1 shows These books and 2 shows Appearance. With the focus on a tab, ← and → move between them. Switching tabs keeps any changes you haven’t saved yet.

These books

These books is one form. Change as many settings as you like, then save them together.

Save and Discard changes

As soon as something differs from what is saved, Unsaved changes, Discard changes and Save appear at the top right of the page. They stay in view as you scroll.

Save writes only the settings you changed. Some saves ask a question first: creating the settings file, or confirming a change that affects new bookings.

Save stays off while a setting has a problem, such as an aging range smaller than the one before it. The setting says what is wrong, in red, under its control. If you leave the page with unsaved changes, the app asks “Your settings have unsaved changes. Save them first?”, with Save, Discard and Cancel.

What each row shows

Each setting has a plain label and one sentence of help on the left, and its control on the right. In a narrow window, or at a large text size, the control goes under the label. Beside or under the control:

In a wide window, a list of the sections is on the left. In a narrow window it is a row of links above the form. A dot beside a section means it holds unsaved changes.

Company

SettingWhat it does
Your companyThe organization note whose name, address and logo go on your invoices.

Choose the note by its title. Its details, such as the address and the logo, are in the note itself; see Your company.

New invoices

SettingWhat it does
New invoice file nameHow a new invoice’s file is named. It must include the number, so no two invoices share a file.
First invoice numberThe number the first invoice gets. After that, each invoice gets one more than the highest so far.
Default payment termsDays until a new invoice is due, when neither the invoice nor its customer says. Leave it empty for no due date.
Default templateThe look a new invoice starts with, when its customer has no template of its own.

The file name is built from pieces. Add Date, Add Customer and Add Number add a piece that is filled in for each invoice, the × on a piece removes it, and you type any text in between. Under it, an example shows what the next invoice’s file would be called, such as “2026-11-25 Acme Invoice 1001.md”. The Number piece can’t be left out.

Once your books have invoices, First invoice number shows the next number and where it comes from. The setting matters only before the first invoice.

Default payment terms apply to new invoices only. An invoice’s own terms come first, then its customer’s, then this setting. Invoices you already have keep their terms.

Default template lists your templates and the starters. A starter is copied into your books the first time an invoice uses it. Leave it at The first template for invoices to keep the invoicer’s usual choice. See Choosing a template.

Accounts

SettingWhat it does
Receivable accountWhere accrual books record what customers owe you.
Revenue accountWhere a row’s amount books when neither the row, its catalog item nor its customer names an account.
Deposit accountWhere deposit invoices book until their final invoice uses them up.
Discount accountAn account for every discount that doesn’t name one. Without it, a discount is shared over the rows it applies to.

Each account field suggests your books’ accounts as you type. If you leave an account unset, the invoicer finds one for you and the row says which one. Account settings says how it chooses. Every account here affects new bookings.

Payments

SettingWhat it does
Deposit paymentsIn cash books, when a deposit counts as income.
Splitting a payment over rowsIn cash books, how a payment that doesn’t cover the whole invoice is shared among its rows.
How far back to look for paymentsHow many days after an invoice a payment may arrive and still be offered as its payment. 0 looks back forever.
Payment before invoiceHow many days before an invoice’s date a payment may arrive and still count for it.

Deposit payments has two choices:

Splitting a payment over rows has two choices:

Both are cash-books settings and both affect new bookings. In accrual books the page folds them into one line: “These books use accrual; the cash-books choices don’t apply.” Booking explains what each choice books.

The last two are the payment-matching settings, shared with Ledgeline.

Editing

SettingWhat it does
Recalculate drafts after outside editsWhat happens when a draft’s rows change in another editor and its totals no longer add up.

The choices are Recalculate a draft’s totals, the default, and Leave them, and show the difference. With the second, the invoice page shows the mismatch and a Recalculate… button. A sent invoice is never recalculated on its own.

This section also shows two rows that are coming later: sending into a closed period, and editing a sent invoice.

Dashboard

SettingWhat it does
Aging rangesThe last day of each range after Current: one to eight numbers, each larger than the one before.
Days-sales-outstanding windowHow many days back days-sales-outstanding is measured over.
Paid windowThe period the dashboard’s Paid card starts on, in days.

Type the aging ranges as numbers separated by commas: 15, 45 gives Current, 1–15, 16–45 and 46+. See Dashboard.

Files and folders

SettingWhat it does
Invoices folderWhere new invoices are written. Existing ones are found wherever they are.
Customers folderWhere new customers are written.
Templates folderWhere new templates and snippets are written, and starter templates are copied.
Catalog noteThe note new catalog items go in.
PDF folderWhere exported PDFs are kept. Notes in it are never read as invoices.

Each is a folder or note inside your books folder, written from the books folder, such as invoices/pdf.

Books

SettingWhat it does
Accrual or cashWhether these books count income when you invoice it, or when you’re paid. Set in Ledgeline.
Closed throughEntries on or before this day are kept as they are. Set in Ledgeline.

These two belong to Ledgeline, so the invoicer only shows them. Open in Ledgeline opens these books there, in the desktop app with Ledgeline installed. See Accrual or cash.

Wording

The Wording section is collapsed at the end of the page, marked “(advanced)”. Its settings are the words the app recognizes in tables, total rows, tags and contact labels. The first word in each list is the one the app writes.

SettingWhat it does
Description columnHeaders that mark a table’s description column.
Quantity columnHeaders that mark the quantity column.
Rate columnHeaders that mark the rate column.
Amount columnHeaders that mark the amount column.
Date columnHeaders that mark the date column.
Unit columnHeaders that mark the unit column.
Item code columnHeaders that mark the column of catalog codes.
Subtotal rowsLabels of subtotal rows.
Total rowsLabels of total rows; the first ends a new invoice’s table.
Deposit rowsLabels of a row that applies a deposit.
Tax rowsLabels of a new tax row.
Customer tagThe one tag that marks a contact note as a customer.
Billing contact labelsWhich email, phone and address to bill, in order of preference.

Each list shows its words as chips. Type a word and press Enter or , to add it, and press × on a chip to remove it. Backspace in an empty field removes the last word. A list needs at least one word. See Words for the defaults and an example in German.

When the app writes the settings file

The app reads these books’ settings from ledgeline.toml and writes it only when you press Save.

If your books have no ledgeline.toml yet, the page says so, and every setting shows its default. The first Save asks: “These books have no settings file yet. Create it?” Create it and save creates the file beside your main journal, with a short comment at the top saying what it is, and saves your changes into it. Cancel creates nothing and keeps your changes on the page.

Changes that affect new bookings

The accounts, Deposit payments and Splitting a payment over rows change what new bookings do. When you save a change to any of them, the app first lists each change with what it will do, and asks you to confirm. For example:

Splitting a payment over rows: Payments you apply from now on are split pro rata. Payments already in your books keep the split they were booked with.

Each change applies from now on only. Invoices and payments already in your books keep how they were booked. When a change leaves sent invoices as they were, the confirmation says how many, and that re-booking one moves it. Save these changes saves them. Cancel keeps them unsaved on the page.

Deposit payments while a deposit is waiting

In cash books, the app won’t save a change to Deposit payments while a deposit you have received is still waiting for its final invoice. Changing it then would count that deposit as income twice, or leave the deposit account below zero. The app says “This change can’t be saved yet” and lists the deposits that are waiting, each with its invoice, customer, date and the amount still waiting. Choose Undo this change to put the setting back, or Keep editing. Once the final invoices have used up those deposits, you can change the setting.

When the settings can’t be changed here

The page turns read-only when it can’t safely write the settings file:

The page then says “These settings can’t be changed here.”, explains why in plain words, lists any problems by setting, and turns every control off. Open the settings file opens it so you can fix it. When the books themselves couldn’t open because of the problem, the page still opens displays a message for the user. Once you fix the file, the page reloads on its own.

When the file changes outside the app

The page watches the settings file. When the invoicer’s settings in it change outside the app, because you edited the file in another editor or pulled a change with git, the page reloads:

A change to Ledgeline’s own settings in the same file, such as closing the books through a date, never conflicts with your unsaved changes here.

Payment matching, shared with Ledgeline

How far back to look for payments and Payment before invoice decide which payments Apply payment… offers for an invoice. Ledgeline’s invoice matching uses the same two settings, so a change in either app changes them in both. In Ledgeline they are under Settings → Books, as Invoice matching.

A payment short of its invoice is always offered as a part payment.

SettingDefaultRange
How far back to look for payments1800 to 3650 days; 0 looks back forever
Payment before invoice40 to 60 days

They save with the rest of the form, when you press Save. They apply to every set of books you open, unless you tick Use for these books only under one of them. Ticking it keeps that value for the books you have open. The app saves it into their ledgeline.toml at once, creating the file if needed, and from then on changes to it in either app stay with these books. Untick it to share the value again. The box isn’t offered when view settings are kept in the browser.

Appearance

The Appearance tab sets the theme and the text size. They are shared with Ledgeline, so a change here changes it there too. Each applies the moment you choose it. There is no Save.

Tick Use for these books only beside either one to keep it for the books you have open, as with the payment-matching settings. “These books have their own theme.” then shows under Theme.

Coming later

Some choices are planned but not built yet. The page shows them turned off, marked Coming later, so you can see what is planned:

WhereWhat happens nowComing later
Splitting a payment over rowsThe two choices abovePay the oldest row first
Deposit paymentsThe two choices aboveKeep a deposit as a deferral, counted as income as its work is invoiced
Sending into a closed periodRefused: change the date to an open day firstBook it on the first open day
Editing a sent invoiceIts booking is replaced where it standsReverse it and book it again

In the settings file

You can change all of these on the Settings page. This section is for reading or editing ledgeline.toml yourself, and for scripts.

The invoicer’s settings go under [invoicer] in ledgeline.toml, the file beside your main journal. See Settings files for how that file works. Every setting is optional. Books without an [invoicer] table get the defaults below.

[invoicer]
company = "[[My Company]]"
revenue-account = "revenue:consulting"
deposit-account = "liabilities:customer-deposits"
number-start = 1001
default-terms = 30

ledgeline-invoicer config prints every setting as the app sees it, defaults included, and the payment-matching settings in use. The invoicer doesn’t ignore a misspelled setting. Every command stops and names it, with the list of settings it expected.

Your books’ basis and closed-through date are Ledgeline’s [books] settings; see Booking. The theme and text size are view settings shared with Ledgeline; see Themes.

Folders and your company

These decide where new files are written. The app finds existing files wherever they are; see Files and formats. Paths are from the books folder and must stay inside it.

SettingOn the pageDefaultWhat it is
invoices-dirInvoices folderinvoicesThe folder for new invoices.
customers-dirCustomers foldercustomersThe folder for new customers.
templates-dirTemplates folderinvoices/tplWhere starter templates are copied and new templates and snippets are written.
catalogCatalog noteinvoices/catalog.mdThe catalog note new catalog items go in.
pdf-dirPDF folderinvoices/pdfWhere exported PDFs are kept. The app never reads notes from this folder.
companyYour companynoneYour company: the title of an organization note, or a link to it.

Numbering, file names and defaults

SettingOn the pageDefaultWhat it is
number-startFirst invoice number1The first invoice number, used while no invoice has one. A number (1001) or text ("2026-0001").
filenameNew invoice file name"{date} {customer} Invoice {invoice_num}.md"The name of a new invoice’s file. {date}, {customer} and {invoice_num} are filled in. It must contain {invoice_num}.
default-termsDefault payment termsnoneNet days for a new invoice whose customer has no terms, 0 to 3650. Without it, such an invoice has no due date.
default-templateDefault templatethe first template for invoicesThe template a new invoice starts with when its customer has no invoice_template, as an invoice’s template: names it: "/invoices/tpl/classic.html".

After the first invoice, the next number is one more than the highest number in your invoice files or your books. A number ending in digits counts up from those digits, so after 2026-0042 comes 2026-0043. There is no counter file to keep in step.

If default-template names a template that isn’t in your books, or one that isn’t for invoices, a new invoice gets the first template for invoices instead, and the app says why.

Account settings

When an account isn’t set, the invoicer finds one for you. Set it when your books have more than one candidate, or when you want another account.

SettingOn the pageWhen unsetWhat it is
receivable-accountReceivable accountthe books’ one receivable account; with more than one, booking asks you to set thisWhere accrual books record what customers owe.
revenue-accountRevenue accountthe books’ one revenue accountWhere a row books when neither the row, its catalog item nor the customer says.
deposit-accountDeposit accountthe one account declared kpi: deferred-revenue, else liabilities:deferred-revenueWhere deposit invoices book. See Deposits.
discount-accountDiscount accountnone: discounts are shared over the rows they apply toAn account for every discount with a blank books cell, such as a contra-revenue account.

The app recognizes accounts by their declared type or kpi: tag first and by name only as a fallback, as Ledgeline does. See Declaring accounts.

Cash-books policies

These matter only in cash books. Each has a default. Change it if your accountant does it the other way.

SettingOn the pageDefaultOther choiceWhat it decides
cash-depositsDeposit paymentsincome-on-receiptliability-until-finalWhether a deposit is income the day it arrives, or held in the deposit account until the final invoice is paid.
payment-allocationSplitting a payment over rowsmatch-rowspro-rataHow a payment that doesn’t cover the whole invoice is split over its rows. match-rows moves each account toward its row’s amount; pro-rata splits by the rows’ proportions.

Recalculation

SettingOn the pageDefaultOther choiceWhat it decides
recalc-on-saveRecalculate drafts after outside editsdraftsneverWhether the app rewrites a draft’s amounts after you change its rows in another editor. With never, the invoice page shows the mismatch and a Recalculate… button instead. A sent invoice is never recalculated on its own.

Dashboard settings

SettingOn the pageDefaultWhat it decides
aging-bucketsAging ranges[30, 60, 90]The aging ranges: the last day of each range after Current. One to eight numbers, each larger than the last.
dso-daysDays-sales-outstanding window90How many days days-sales-outstanding looks back over, 1 to 3660.
paid-window-daysPaid window30The period the Paid card starts on, 1 to 3660 days.

See Dashboard.

Payment-matching keys

The two payment-matching settings aren’t under [invoicer]. They are view settings shared with Ledgeline, kept in ui-prefs.toml, or under [ui] in ledgeline.toml for books that keep their own. See Settings files.

SettingOn the pageDefaultAllowed values
settlementLookbackDaysHow far back to look for payments1800 to 3650 days. 0 means no limit
settlementLeadDaysPayment before invoice40 to 60 days
[ui]
# These books are paid slowly: look back a year.
settlementLookbackDays = 365

Words

The app recognizes some things by their English words: table headers, total rows, the customer tag, contact labels. Each list is a setting under [invoicer.words], so you can work in another language or your own terms. Setting a key replaces its whole list. The first word in a list is the one the app writes.

KeyOn the pageDefaultUsed for
descriptionDescription column["Description", "Item", "Service", "Product"]the description column’s header
quantityQuantity column["Qty", "Quantity", "Hours", "Units"]the quantity column
rateRate column["Rate", "Price", "Unit price", "Unit cost"]the rate column
amountAmount column["Amount", "Total", "Line total"]the amount column
dateDate column["Date", "Service date"]the date column
unitUnit column["Unit"]the unit column
itemItem code column["Code", "SKU"]the catalog code column
subtotalSubtotal rows["Subtotal"]subtotal rows
totalTotal rows["Total due", "Total", "Balance due", "Amount due"]total rows; the first is the final row of a new table
depositDeposit rows["Less deposit"]the label of a row that applies a deposit
taxTax rows["Sales tax"]the label of a new tax row
customer-tagCustomer tag"customer"the tag that marks a contact as a customer (one word)
billing-labelsBilling contact labels["billing", "work"]which email, phone and address to bill, in order of preference

For example, to bill in German:

[invoicer.words]
description = ["Beschreibung"]
quantity    = ["Menge"]
rate        = ["Preis"]
amount      = ["Betrag"]
subtotal    = ["Zwischensumme"]
total       = ["Gesamtbetrag"]

The file format itself stays in English: frontmatter keys, type values, the draft, sent and void statuses, and the journal’s tag names. Scripts and mbr rely on them.