Swiss QR-Bill
The Swiss QR bill adds a payment slip to a Sales Invoice PDF. Choose the reference type that matches the receiving bank account, then create the PDF manually or when the invoice is submitted.
Before you start
- Install Swiss Accounting Software and create a Swiss QR Bill Settings record for each company that will issue QR bills.
- Add an IBAN to the selected Bank Account. QRR requires a QR-IBAN; SCOR and NON require a regular IBAN.
- Make sure the Sales Invoice has a company address, customer address, customer name, posting date, and currency CHF or EUR.
Configure Swiss QR Bill Settings
Open Swiss QR Bill Settings, create a record for the company, and fill in the fields below.
| Field | What it does |
|---|---|
| Company | Company whose invoices use these settings. Create one settings record per company. |
| QR Code Type | QRR: 27-digit QR reference with a QR-IBAN. SCOR: ISO 11649 creditor reference beginning with RF, with a regular IBAN. NON: regular IBAN with no payment reference. |
| Bank Account | Receiving bank account. Its IBAN must match the selected QR Code Type. |
| Assign unreconciled transactions to | Optional ERPNext User to receive an assignment when a Bank Transaction cannot be matched automatically. |
| Threshold payment difference | Optional amount allowed between a payment and the invoice balance or a payment term. A small difference can be written off during automatic matching; configure the company's write-off account for this. Leave empty to disable tolerance for small differences; partial payments can still be matched. |
| Automatically Create Sales Invoice PDF | When enabled, submitting a Sales Invoice creates and attaches a private PDF containing the invoice and its QR slip or slips. Off by default. |
| QR Bill per invoice | Despite the label, enabling this prints one QR slip for each payment schedule term with a positive amount. When disabled, one slip uses the invoice's outstanding amount. Off by default. |
| Include Tax ID in Payment Information | Adds the company's Swiss UID from Company → Tax ID to the structured payment information when available. The invoice number and posting date are included regardless of this setting. Off by default. |
For QRR, the app uses a 27-digit value from Sales Invoice → ESR Reference Code when present, or derives one from the invoice number. For SCOR, it uses an RF reference in that field when present, or derives one. NON has no payment reference. The ESR Reference Code is set when the Sales Invoice is submitted and is also used to match incoming bank transactions.
Create and check the PDF
- Open a Sales Invoice and choose Create QR Bill. If Automatically Create Sales Invoice PDF is enabled, submitting the invoice also creates the PDF.
- Open the private attachment named {invoice}-QR.pdf. It contains the invoice pages followed by the QR slip or slips. Creating it again replaces the previous generated attachment.
- Check the creditor and debtor addresses, IBAN, currency, amount, and reference before sending it.
With QR Bill per invoice enabled, a schedule with two positive terms produces two slips. Each slip has its term amount and an additional information line such as 1/2 - 15.02.2026. A single term has no 1/1 label.
Payment information
The QR code includes structured Swico S1 billing information with the invoice number and posting date. The same information is printed beneath the translated Additional information heading. There is no default English invoice description. If Include Tax ID in Payment Information is on and Company → Tax ID contains a Swiss UID, the UID is included too.
The unstructured description, when supplied, and the structured information share a 140-character limit. Optional description text may be shortened to preserve invoice and installment details. An invalid Swiss UID in Company → Tax ID causes QR bill generation to fail while the tax ID option is enabled.
Troubleshooting
- Wrong reference or IBAN: Check that QRR uses a QR-IBAN and SCOR or NON uses a regular IBAN, then review the Sales Invoice's ESR Reference Code.
- Missing party information: Add the company and customer addresses to the Sales Invoice and check the customer name.
- Tax ID validation error: Correct Company → Tax ID to a Swiss UID, such as CHE-123.456.789, or disable Include Tax ID in Payment Information.
- No PDF on submission: Check Automatically Create Sales Invoice PDF in the settings for that company. You can also use Create QR Bill on the invoice.
For help, contact ONFUSE Support.