SwissQRBill.NET
SwissQRBill.NET copied to clipboard
bill.Debtor.Name is limited to one line. I need 2 lines
I would like the customer name to be multiline. All attempts with "\r\n" or "\r" or "\n" were unsuccessful, everything is displayed on one line.
bill.Debtor.Name = "Firma XY" + "\r" + "Herr Vorname Nachname"
The Swiss Payment standard does not allow newlines in the customer name. And this library only allows what will encoded in the QR code payload.
Newlines could be allowed for display and removed in QR code payload. But this is not how it works currently.
The creditor and debtor addresses have further restrictions (number of address lines etc.). They habe proven restrictive for other users as well. Again, the restrictions are mandated by the standards. The addresses do not need to be a full postal addresses as they will never be used for sending physical mail. But in practice, it's difficult to maintain two addresses for a debtor.
The Swiss Payment standard does not allow newlines in the customer name. And this library only allows what will encoded in the QR code payload.
Newlines could be allowed for display and removed in QR code payload. But this is not how it works currently.
The creditor and debtor addresses have further restrictions (number of address lines etc.). They habe proven restrictive for other users as well. Again, the restrictions are mandated by the standards. The addresses do not need to be a full postal addresses as they will never be used for sending physical mail. But in practice, it's difficult to maintain two addresses for a debtor.
Hallo Manuel, danke für dein schnelles Feedback. Ich verstehe, das es im Standard nicht vorgesehen ist, kam aber darauf, da es mit diesem Online-Generator eben möglich ist: https://www.qr-rechnung.net/#/create Weiter sind halt beim Absender der Firmenname oft lang und könnte so aufgeteilt werden oder beim Empfänger ein Ehepaar, wo aber nicht beide den gleichen Namen haben, so könnte man auch dies besser darstellen. Aber natürlich, es geht auch so - Hauptsache die Rechnung wird bezahlt ;-) Danke für deine Arbeit.
Hallo Manuel, danke für dein schnelles Feedback. Ich verstehe, das es im Standard nicht vorgesehen ist, kam aber darauf, da es mit diesem Online-Generator eben möglich ist: https://www.qr-rechnung.net/#/create Weiter sind halt beim Absender der Firmenname oft lang und könnte so aufgeteilt werden oder beim Empfänger ein Ehepaar, wo aber nicht beide den gleichen Namen haben, so könnte man auch dies besser darstellen. Aber natürlich, es geht auch so - Hauptsache die Rechnung wird bezahlt ;-) Danke für deine Arbeit.