Easy usable Python script to generate QR-Bill following the SIX implementation guidlines. QR-Bill is also known as QR-Rechnung in the German part and QR-Facture for the Romands.
Deptor name and address fit in a C5 envelope with right side window
- python (3.4+)
- pip
git clone https://github.com/kantium/Swiss-QR-Bill.git
cd Swiss-QR-Bill
pip install -r requirements.txt
git fetch
Three JSON files need to be customized for your needs, these files are located in the Creditors
, Debtors
and Invoices
folders.
./BillGenerator.py -c Creditors/Robert.json -d Debtors/Maria.json -i Invoices/Invoice_220506_522.json -l fr
- PDF Invoice generation
- Languages (FR/EN)
- Without Reference number (NON)
- With Reference number (QRR)
- Structured Address
- IBAN and Reference number checksum
- German translation
- ISO Country Code check
PDF files like the SIX Implementation Guide can be found in the Documentation folder
./BillGenerator.py -h
usage: BillGenerator.py [-h] -c CREDITOR -d DEBTOR -i INVOICE
[-l [{en,fr,de,it}]] [--debug]
QRBill Invoice Generator
options:
-h, --help show this help message and exit
-c CREDITOR, --creditor CREDITOR
Person who receive money
-d DEBTOR, --debtor DEBTOR
Billed person
-i INVOICE, --invoice INVOICE
Invoice content
-l [{en,fr,de,it}], --language [{en,fr,de,it}]
list of language (default: en)
--debug
You are welcome to help by openning an issue or proposing changes