E-invoice rule EN 16931 schematron
BR-23: Line 1: the quantity needs a unit of measure
Line 1: the quantity needs a unit of measure code (BT-130) in the unitCode attribute, for example unitCode="C62" for one piece.
Original wording of the rule
[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).
Source of the quotation: EN 16931 schematron (ConnectingEurope/eInvoicing-EN16931, licence EUPL 1.2)
How to fix it
- Open the XML file and find the element
cac:InvoiceLine/cbc:InvoicedQuantity. - Add or correct the element the way the wording of the rule above asks for.
- Save the file and check it again with our checker. It runs in your browser, the file is never uploaded.
A correct UBL 2.1 snippet
<cac:InvoiceLine
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:InvoicedQuantity unitCode="C62">6</cbc:InvoicedQuantity>
</cac:InvoiceLine>
The snippet is only the part of the document the rule is about. Put it in the right place inside your invoice; the namespaces are written here only so that the snippet reads on its own.
When it is reported
Profile: EN 16931, Peppol BIS Billing 3.0, XRechnung 3.x
How we rate it: error
Where we point in the file: /Invoice/cac:InvoiceLine[1]/cbc:InvoicedQuantity
Related rules
- BR-21 Line 1 has no identifier (BT-126)
- BR-22 Line 1 has no quantity (BT-129)
- BR-24 Line 1 has no net amount (BT-131)
- BR-25 Line 1 has no item name (BT-153) in cac:Item/cbc:Name
- BR-26 Line 1 has no item net price (BT-146) in cac:Price/cbc:PriceAmount
Our check is not complete: we do not check the XSD schema and we do not implement every rule, and a file that passes says nothing about whether the buyer or the Peppol network will accept it. Licences for the quoted wordings are listed in our sources.