swico / www.swiss-qr-invoice.org

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

How can we represent negative VAT amounts? #32

Open epsitec opened 2 years ago

epsitec commented 2 years ago

An invoice contains some positions with a VAT rate of 7.7% and some with a VAT rate of 2.5%.

In our example, the positions with the reduced VAT rate have a negative amount (refund).

Invoice: Code Quantity Unit price VAT rate Total mount
A-100 10 100.00 7.7% 1077.00
B-200 -5 100.00 2.5% -512.50

How can we represent this using the SWICO-String?

epsitec commented 2 years ago

Positive or negative VAT amounts are both represented as decimal numbers.

The correct and most compact encoding would be:

/32/7.7:1000;2.5:-500

Which means:

epsitec commented 2 years ago

Such an example should be included in the spec.