manuelbl / SwissQRBill

Java library for Swiss QR bill payment slips (aka QR-Rechnung)
https://www.codecrete.net/qrbill
MIT License
156 stars 37 forks source link

Formatting address on invoice #68

Closed Knil23 closed 2 years ago

Knil23 commented 2 years ago

Hello,

is there a way to format the address on the invoice slip? I ask this because we have some address that are like the following: Mr. Pinco Pallino c/o Pinco xxx street xxxxx 9999 town

Because of the lack of line and characters (70) the result on invoice is like the following and postfinance/banks doesn't like it Mr. Pinco Pallino c/o Pinco xxx 9999 town

is possible to make a character in the line that would make the printed address formatted but will be removed in the QRcode? for example the text Mr. Pinco Pallino#@c/o Pinco xxx street xxxxx 9999 town

and the result on the invoice

Mr. Pinco Pallino c/o Pinco xxx street xxxxx 9999 town

Unfortunatly they way ours client write the address is not restricted (at least until 2024).

Thank you for your time and work.

saluti,

manuelbl commented 2 years ago

No, there is no way to format the addresses differently.

Generally, I would recommend to separate the two middle lines with a comma:

Mr. Pinco Pallino c/o Pinco xxx, street xxxxx 9999 town

If it concerns the debtor address, you can even omit one of the address lines as the address is mainly informational. The actual payment will contain the address of the owner of the account the money was paid from.