◆ EUInvoice

Reference · EN 16931 · BR-CL

BR-CL — Code lists

The EN 16931 business rules in the BR-CL family (Code lists), with CEN's own wording, the business terms each one names, and where each is asserted in a UBL invoice. To check a document against these rules, use the free EN 16931 validator.

These are the EN 16931 business rules of this family, as published by CEN/TC 434 in the validation artefacts that accompany the standard. The wording here is the rule text itself, and it is never a paraphrase. The codes in parentheses are business terms (BT-) and business term groups (BG-), the semantic model's names for the fields a rule constrains, and the location given with each rule is where it is asserted in a UBL invoice.

Rules

BR-CL-01

The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.

Location: cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode

BR-CL-03

currencyID MUST be coded using ISO code list 4217 alpha-3

Location: cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cbc:TaxAmount | cbc:TaxableAmount | cbc:LineExtensionAmount | cbc:TaxExclusiveAmount | cbc:TaxInclusiveAmount | cbc:AllowanceTotalAmount | cbc:ChargeTotalAmount | cbc:PrepaidAmount | cbc:PayableRoundingAmount | cbc:PayableAmount

BR-CL-04

Invoice currency code MUST be coded using ISO code list 4217 alpha-3

Location: cbc:DocumentCurrencyCode

BR-CL-05

Tax currency code MUST be coded using ISO code list 4217 alpha-3

Location: cbc:TaxCurrencyCode

BR-CL-06

Value added tax point date code MUST be coded using a restriction of UNTDID 2005.

Location: cac:InvoicePeriod/cbc:DescriptionCode

BR-CL-07

Object identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153.

Location: cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cbc:ID[@schemeID] | cac:DocumentReference[cbc:DocumentTypeCode = '130']/cbc:ID[@schemeID]

BR-CL-08

Invoiced note subject code shall be coded using UNCL4451

Location: /ubl:Invoice/cbc:Note | /cn:CreditNote/cbc:Note

BR-CL-10

Any identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.

Location: cac:PartyIdentification/cbc:ID[@schemeID]

BR-CL-11

Any registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.

Location: cac:PartyLegalEntity/cbc:CompanyID[@schemeID]

BR-CL-13

Item classification identifier identification scheme identifier MUST be coded using one of the UNTDID 7143 list.

Location: cac:CommodityClassification/cbc:ItemClassificationCode[@listID]

BR-CL-14

Country codes in an invoice MUST be coded using ISO code list 3166-1

Location: cac:Country/cbc:IdentificationCode

BR-CL-15

Country codes in an invoice MUST be coded using ISO code list 3166-1

Location: cac:OriginCountry/cbc:IdentificationCode

BR-CL-16

Payment means in an invoice MUST be coded using UNCL4461 code list

Location: cac:PaymentMeans/cbc:PaymentMeansCode

BR-CL-17

Invoice tax categories MUST be coded using UNCL5305 code list

Location: cac:TaxCategory/cbc:ID

BR-CL-18

Invoice tax categories MUST be coded using UNCL5305 code list

Location: cac:ClassifiedTaxCategory/cbc:ID

BR-CL-19

Coded allowance reasons MUST belong to the UNCL 5189 code list

Location: cac:AllowanceCharge[cbc:ChargeIndicator = false()]/cbc:AllowanceChargeReasonCode

BR-CL-20

Coded charge reasons MUST belong to the UNCL 7161 code list

Location: cac:AllowanceCharge[cbc:ChargeIndicator = true()]/cbc:AllowanceChargeReasonCode

BR-CL-21

Item standard identifier scheme identifier MUST belong to the ISO 6523 ICD code list

Location: cac:StandardItemIdentification/cbc:ID[@schemeID]

BR-CL-22

Tax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list

Location: cbc:TaxExemptionReasonCode

BR-CL-23

Unit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension

Location: cbc:InvoicedQuantity[@unitCode] | cbc:BaseQuantity[@unitCode] | cbc:CreditedQuantity[@unitCode]

BR-CL-24

For Mime code in attribute use MIMEMediaType.

Location: cbc:EmbeddedDocumentBinaryObject[@mimeCode]

BR-CL-25

Endpoint identifier scheme identifier MUST belong to the CEF EAS code list

Location: cbc:EndpointID[@schemeID]

BR-CL-26

Delivery location identifier scheme identifier MUST belong to the ISO 6523 ICD code list

Location: cac:DeliveryLocation/cbc:ID[@schemeID]

What this does not cover

This page states what the rules say. To check a document against them, use the free EN 16931 validator.

Sources

  • CEN/TC 434 EN 16931 validation artefacts (Schematron) — the published rule set this page quotes, in the abstract model and code list rule files.