vereo
← All programs

Swiss Invoice

Swiss QR-bill, discounts and bank reconciliation for Perfex CRM

Perfex CRM 3.0+ · PHP 8.1+ · Version 1.5.1

The invoice as a PDF: address field for the window envelope, line items with a discount column, and rounding to five centimes in the totals.
The invoice as a PDF: address field for the window envelope, line items with a discount column, and rounding to five centimes in the totals.
Receipt and payment part on the same PDF, drawn to the Swiss standard — with QR code and reference.
Receipt and payment part on the same PDF, drawn to the Swiss standard — with QR code and reference.
A discount per line, as a percentage or a fixed amount, right in Perfex's item table.
A discount per line, as a percentage or a fixed amount, right in Perfex's item table.
Enter gross prices: the «incl. VAT» column works out the net rate — what is stored is net.
Enter gross prices: the «incl. VAT» column works out the net rate — what is stored is net.
The camt import after the analysis: matched, partial payment, no invoice found — nothing is posted until you confirm.
The camt import after the analysis: matched, partial payment, no invoice found — nothing is posted until you confirm.
The settings: payee, IBAN or QR-IBAN, reference type, rounding to five centimes, the Swiss layout and the account numbers for the accounting extract — switchable per document type.
The settings: payee, IBAN or QR-IBAN, reference type, rounding to five centimes, the Swiss layout and the account numbers for the accounting extract — switchable per document type.
The accounting extract: pick a period, check the figures, take invoices, payments and expenses as CSV.
The accounting extract: pick a period, check the figures, take invoices, payments and expenses as CSV.

Perfex CRM is good at everything a job passes through — and knows nothing about Switzerland. No QR-bill, no discount per line item, no entry with gross prices, no bank reconciliation with a reference, no extract for the accountant. Six things that are not optional in this country, and this module brings exactly those six.

The QR payment part

The payment part and the receipt are drawn onto the existing invoice PDF, not appended as a second page: it is the same TCPDF document that Perfex produces anyway.

Supported are QRR (with a QR-IBAN; no Swiss bank issues a participant number any more), SCOR and NON, as well as the structured Swico billing information (S1) that the recipient needs for automatic posting. It is produced for CHF and EUR only; a single invoice can be excluded through a field.

The reference is stored when the invoice is created and reused when it is drawn. That is where home-made solutions fail: if the reference type is changed later, a newly calculated reference would no longer match the payment the customer received three months ago — and the reconciliation would never find it again.

Discount per line item

As a percentage or as an amount, on invoices, quotes and proposals. It appears in the preview and in the PDF and flows into the subtotal, the tax and the total — not merely deducted for appearance.

It also survives what makes such extensions lose data elsewhere: copying an invoice, converting a quote, recurring invoices.

Swiss invoice layout

Address field for the window envelope on the right, readable type sizes, one accent colour. Plus rounding to five centimes, on invoices, quotes and proposals — switchable.

The PDF shows the gross subtotal, a separate discount line and a separate rounding line. Someone who cannot check an invoice asks, and in the bad case pays less.

Entry including VAT

A second price column in the items table showing the same line gross. Type into either field and the other follows — a supplier invoice can be entered with the amounts printed on it instead of back-calculating every line by hand. It is not a mode to switch between: both fields sit next to each other, and whoever enters net notices nothing.

Storage stays net — that is what Perfex, the PDFs, the payment part and the VAT figures all read. Because that column holds two decimals, gross → net → gross can land half a cent from what was typed; the gross field is therefore re-rendered from the stored net rate whenever it loses focus. What is on screen is what the document will actually total to.

Available on invoices, quotes, proposals and credit notes.

Payment matching from the bank file

Upload camt.053 or camt.054: for every credit the module reads the QR or SCOR reference, resolves it to the invoice — first through the stored one, then by recalculating and verifying — and for payments without a reference falls back on the amount.

Before posting there is a preview: matched, partial payment, overpayment, already imported, not found. Against the statement read in twice stands the transaction ID of the bank.

An import can be undone. Every run remembers the payments it created; undoing deletes exactly those and nothing else. For invoices from before, references can be created retroactively.

Extract for the accountant

Perfex keeps no books — there is no chart of accounts and no journal. Whoever hands the figures on has had to assemble them from lists that were never meant for it.

Under Sales → Accounting extract there is a period — the current quarter by default — and three files:

  • Invoices, one row per document and VAT rate. That is how they are booked, and a row carrying 8.1 % next to 2.6 % cannot be entered without splitting it by hand. Credit notes carry a minus; drafts and cancelled invoices stay out.
  • Payments with mode and transaction id.
  • Expenses with category, net, VAT and gross — and the invoice a re-billed expense went onto, so that nobody books it twice.

Account numbers for receivables, revenue and VAT can be stored and are written into the extract; left empty, the columns stay empty.

The rows add up to the document total, and that is checked — against what the document stores, not against the sum of the rows themselves. Where something disagrees, a hint stands next to it instead of a quietly wrong figure.

Deliberately readable and not an import file: every accounting program has its own format, and the figures here are the ones all of them need.

No change to the core

Everything runs through the Perfex hooks — pdf_close, items_table_class, after_invoice_added and relatives. No core file is modified, and so the installation survives a Perfex update instead of blocking it.

Requirements

  • Perfex CRM 3.0 or newer
  • PHP 8.1 or newer with gd and mbstring
  • The PHP libraries (sprain/swiss-qr-bill, genkgo/camt) are bundled; Composer does not have to run on the server.

The interface speaks German, French, Italian and English.

Licence key

With the purchase you receive a key that you enter under Setup → Settings → Swiss Invoice. It registers the installation and is re-checked daily through the Perfex cron — no page waits for the network while that happens.

The answers of the server are signed and verified against the check key built into the module. The last verified answer keeps applying if vereo.ch is unreachable for once: no network is not invalid. An invoicing module that drops the payment part in the middle of operation does more damage than the copy it is meant to prevent — it is switched off only on a revocation after a chargeback or a refund.

Licence

One licence covers one Perfex installation — a test or staging installation of the same system is included and takes the second seat. Versions of the 1.x series are included and are available in the customer area. The full terms are in the package as LICENSE.md.

Help and documentation for Swiss Invoice →

  • QR payment part and receipt on every invoice
  • QRR, SCOR and NON — with Swico billing information
  • Discount per line item, on quotes and proposals too
  • Swiss invoice layout with rounding to five centimes
  • Entry per line item, net or gross as you prefer
  • Payment matching from camt.053 and camt.054
  • Extract for the accountant: invoices, payments and expenses as CSV
  • Invoice language per document, interface in DE, FR, IT, EN
  • No change to the Perfex core