manuelbl / SwissQRBill.NET

.NET library for Swiss QR bill payment slips (aka QR-Rechnung)
MIT License
86 stars 32 forks source link

bill.Debtor.Name is limited to one line. I need 2 lines #66

Open deltavision opened 3 months ago

deltavision commented 3 months ago

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"

manuelbl commented 3 months ago

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.

deltavision commented 2 months ago

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.