Setting Up Swiss QR Code Invoices
Swiss invoices usually include a payment slip. Starting mid-2020, Switzerland will introduce the QR-bill, successively replacing the traditional payment slips. The QR-bill includes a QR code that holds the payment-relevant information. All market participants must technically be able to issue and process QR-bills.
With this respect, JustOn supports generating invoices that include the Swiss QR code.
Swiss QR-bill example, produced with JustOn
The support for Swiss QR code invoices is available as of JustOn 2.64.
Be aware of the following specifics:
- JustOn supports regular IBANs and, therefore, the Creditor Reference according to the ISO 11649 standard only. JustOn creates the ISO 11649 reference based on the invoice number.
- For the payment reference, JustOn uses the
Payment Referencefield of the template (see Configuring Payment Reference Text). The payment reference is part of the data that is contained in the QR code.
- JustOn does currently not support QR-IBAN and QR-IID.
- JustOn requires the complete address information for both the business entity and the invoice recipient (billing address). Blank fields for sender or recipient produce errors.
- JustOn does currently not support the QR-bill fields
For the QR code invoice to work, JustOn requires the following data specified on the business entity and the invoice:
Billing Postal Code
Billing Country Code
Once set up accordingly, JustOn prints the QR-code payment slip on a new page at the end of the invoice PDF.
Configuring QR Code Template
The PDF generation for QR code invoices relies on the JustOn PDF service, which requires a Liquid template.
JustOn recommends to enable the Template Layout v2 when working with templates that base on Liquid files. For details, see Assigning Page Layout to User Profiles.
- Create a new template, clone an existing template, or open an existing template.
- In the Layout & Design section, double-click the
PDF Rendererfield and specify the value
Attach the required Liquid template files.
In the Notes & Attachments area, click to open the action menu, select Upload Files, then proceed as prompted.
You can use the following Liquid templates as a starting point:
This operation requires the custom
ONB2__Type__c) to be available on the page layout of the Content Version object. For details about adding fields to page layouts, see Modifying Page Layouts or Search Layouts.
Make sure to set the
Typeof the uploaded files to
Liquid Template. The picklist value
Liquid Templatemay not be available in your org. In this case, add it to the value picklist for the
Typefield of the Content Version object. For details, see Modifying Picklist Values.
Add QR Codefield, select
Swiss QR Code.
This operation requires the custom
Add QR Codefield (
ONB2__AddQRCode__c) to be available on the page layout of the Template object. For details about adding fields to page layouts, see Modifying Page Layouts or Search Layouts.
In the Layout & Design section, double-click the
PDF Optionsfield and specify options for the PDF output as required.
The field value is in JSON notation and sets optional properties for the
Sets the language code.
Defines the currency display format. Possible values include
Toggles the digit group separator. Possible values include
Sets the minimum number (Integer) of decimal places.
Sets the maximum number (Integer) of decimal places.
JustOn recommends to set at least the
localeproperty. It defaults to
en-ENif not set.
Optionally, define a page header and footer.
In the Header & Footer section, double-click the
Footerfield and specify the information as required.
Page header, footer and page counters must be addressed using specific CSS classes. You may use the following code as a starting point for your customization:
<div class="page-header" style="width:90%; text-align:center; font-size:10pt;"></div>
<div class="page-footer" style="width:90%; text-align:center; font-size:10pt;"> Page <span class="pageNumber"></span> of <span class="totalPages"></span> </div>
Click Save to apply your template customization.
You can now apply this template to invoices with recipients in Switzerland. When generating the PDF file, the QR-code payment slip will be printed accordingly.
Do not change the CSS or HTML sections for the payment slip. Otherwise, your invoice template may no longer comply with the standard.