swico / www.swiss-qr-invoice.org

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

Is /32/7.7:180 a valid VAT Details element? #21

Open epsitec opened 3 years ago

epsitec commented 3 years ago

A customer's ERP rejected an invoice containing a VAT Details element of 7.7% on 180.00 CHF, encoded as /32/7.7:180. Yet the validator considers the QR bill as valid. Who's right?

epsitec commented 3 years ago

The Swico S1 Syntax Definition states that element /32/ can be either represented as:

Usually, /32/7.7 is enough to specify that the VAT rate of 7.7% should be applied on the total amount of the invoice.

It is yet possible to specify explicitly the net value too, so /32/7.7:180 is valid, as long as the net value of the invoice matches the value specified in the /32/ element.

epsitec commented 3 years ago

See https://github.com/swico/www.swiss-qr-invoice.org/issues/26