ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
237 stars 132 forks source link

Are codes (eg. VatExemptionReasonCode) case sensititive? #549

Closed hvbtup closed 2 weeks ago

hvbtup commented 2 weeks ago

I updated from Mustang 2.11 to 2.14. Now the validator complains about vatex-eu-ae. I had to change the value to VATEX-EU-AE.

Looking at the official code list at https://www.xrepository.de/details/urn:xoev-de:kosit:codeliste:vatex_1, the codes are shown in lowercase there. But the validator expects uppercase values.

I could not find any official statement anywhere if the codes are case sensitive or not.

If they are case-sensitive, then the documentation of EN16931 and XRechnung should clarify this. If not, then the look-up code should in the validator should be case-insensitive.

jstaerk commented 2 weeks ago

the schematron files contain the uppercase version only feel free to ask them to clarify e.g. at https://github.com/ConnectingEurope/eInvoicing-EN16931/ and/or https://github.com/itplr-kosit/validator-configuration-xrechnung