swico / www.swiss-qr-invoice.org

Website for Swiss QR Invoice organization.
https://www.swiss-qr-invoice.org
11 stars 1 forks source link

Missing Field 'Bill information' is not validated correctly #9

Closed Arthur26 closed 4 years ago

Arthur26 commented 4 years ago

The specification at https://www.paymentstandards.ch/dam/downloads/ig-qr-bill-en.pdf (Version Version 2.1 – 30.09.2019) states on page 29, that the field "Bill information" is optional (Letter O in column status), which means, the Field must mandatorily be delivered, but not necessarily filled (can be empty).

However, the validator accepts a Swiss QR Code without the Field "Bill information" as valid.

(Note, that most of Swiss QR Code examples in the given specification (Annex A: Examples) are not valid according to this rule)

epsitec commented 4 years ago

I'll ask Thomas Reske if the IGs are indeed correct or not.

epsitec commented 4 years ago

SIX (Karolina Suchowska) replied that this is covered by the QR bill FAQ:

How many lines (elements) does the Swiss QR Code contain?

The QR code always contains a minimum of 31 lines and a maximum of 34 lines (when using "Billing information" and 2x "Alternative procedure parameters"). For the last filled data element, the final line break (CR/LF or LF) can be retained or omitted.

If a Swiss QR Code contains only payment information, the last filled element is always the "Trailer" element with the character string EPD in line 31.

I feel that the IGs should be clarified with respect to the meaning of optional fields when these are found after the EPD.

epsitec commented 4 years ago

I've got the confirmation that SIX will update the Implementation Guidelines in a future revision.

epsitec commented 4 years ago

The behavior of the validator is correct and I'll close this issue.

Arthur26 commented 4 years ago

Thanks for this clarification.