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
168 stars 99 forks source link

unitCodes falsley fallged as not allowed #333

Closed ghost closed 11 months ago

ghost commented 11 months ago

The unitCode BB gets flagged as not allowed, but is allowed according to the documentation.
FeRD includes in the current ZUGFeRD-Standard the Document EN16931 code lists values v8 - used from 2021-09-06.xlsx which is located in /zugferd22de.zip/DE/Dokumentation/. In that Excel are following Documents listed on row 24 UN/ECE Recommendation N°20 and UN/ECE Recommendation N°21 — Unit codes.
These documents can be found here:


The corresponding error message: <error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='IncludedSupplyChainTradeLineItem'][31]/*[local-name()='SpecifiedLineTradeDelivery']/*[local-name()='BilledQuantity']" criterion="document('FACTUR-X_EXTENDED_codedb.xml')//cl[@id=9]/enumeration[@value=$codeValue9]">Value of '@unitCode' is not allowed. from /xslt/ZF_221/FACTUR-X_EXTENDED.xslt)</error>

jstaerk commented 11 months ago

which documentation? on https://ec.europa.eu/digital-building-blocks/wikis/display/DIGITAL/Registry+of+supporting+artefacts+to+implement+EN16931 in – Full listing of the code lists as used in EN16931 - version 11.0 Sheet "Unit" I do indeed find BB (Base Box) but no FLA?

ghost commented 11 months ago

I edited the issue, you are right I can't find FLA either only BB. Sorry for that.