Skip to main content
Without locking, Foliant creates an invoice fresh every time you open it, from the current order and the current template. If you edit the template or the order changes, last month’s invoice changes too. That’s fine for packing slips, but tax rules in Germany, France and the rest of the EU say an issued invoice must not change. The Locked invoices settings With locked invoices on, Foliant keeps a tamper-proof copy of each invoice and credit note when it’s issued: the PDF itself, plus a SHA-256 hash (a digital fingerprint) of it. From then on, downloads, exports, PDF delivery emails and the customer portal all get that same stored PDF. Template or order changes don’t touch it. Corrections are made with credit notes. Locked invoices are available on every plan.

Before you start

  • Locking only applies to numbered documents. Turn on Number invoices (and Number credit notes if you use them) in document numbering.
  • At least one template needs Document type set to Invoice or Credit note. Quotes are never locked.
  • Check your invoice template before you turn locking on. Invoices issued after that keep the look and details they had when they were issued.
  • An order’s details, such as a PO number or a wrong address, can be corrected before its invoice is issued. See Edit invoice details before an invoice is issued.

Turn on locked invoices

  1. In Foliant, go to Settings › Documents & printing.
  2. In Locked invoices, turn on Lock issued invoices and credit notes.
  3. Choose when documents are locked in Lock documents (see below).
  4. Set Keep issued documents for, in years.
  5. Click Save.
If invoice and credit note numbering are both off, Foliant shows “Locking needs invoice or credit note numbering. Without it, nothing is locked.” Click Turn on invoice numbering, then save.

Choose when documents are locked

Until a document is issued, Foliant keeps creating it fresh from the current order and template, like any other document.

How long issued documents are kept

Keep issued documents for is a number of years, from 1 to 30. The default is 10. How long you must keep invoices depends on your country; check with your accountant. The period is set for each document when it’s issued. If you change it later, documents already issued keep the period they were issued with. See Download the archive and how long documents are kept.

What a locked document keeps

  • The PDF exactly as it was issued, byte for byte.
  • The order details it was made from, and the template version used.
  • Your legal details as they printed at the time. Changing them in Settings › Tax & legal later doesn’t change issued invoices.

Turn locking off

Turn off Lock issued invoices and credit notes and save. New invoices aren’t locked any more. Documents already issued stay locked: Foliant still serves their stored PDF, and they stay on the Issued invoices page. The page then shows “Locking is off, so new invoices aren’t locked. Documents already issued stay locked.”

Good to know

  • Each order has one issued invoice, whichever invoice template you use to open it.
  • When a locked invoice’s order is cancelled, the invoice isn’t voided. It stays as issued, and the refund is corrected with a credit note.
  • After you turn locking on, the Locked invoices section links to View issued invoices.
  • On the Starter, Growth and Scale plans, the same section can add e-invoice data (ZUGFeRD / Factur-X) to every issued document. See Add e-invoice data to issued invoices.