{
  "id": "BR-04",
  "country": "EU",
  "syntax": "ubl",
  "group": "document",
  "severity": "fatal",
  "severity_note": "fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-18.",
  "spec": "Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL",
  "statement": "An Invoice shall have an Invoice type code (BT-3).",
  "statement_lang": "en",
  "context": "/ubl:Invoice | /cn:CreditNote",
  "test": "normalize-space(cbc:InvoiceTypeCode) != '' or normalize-space(cbc:CreditNoteTypeCode) !=''",
  "meaning": "An invoice must have an invoice type code (BT-3). The published test accepts a non-blank invoice type code or a non-blank credit-note type code. The credit-note comparison is !='' with no space before the quotes. The invoice-type comparison is != '' with a space. The message says \"shall have\".",
  "fix": "Fill cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode with a non-empty type code (BT-3).",
  "example_fail": "InvoiceTypeCode and CreditNoteTypeCode are both missing or blank.",
  "example_pass": "InvoiceTypeCode contains a non-empty code, or CreditNoteTypeCode does.",
  "example_note": "Illustration of the condition in the official statement. Not an example published by the source.",
  "source_url": "https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/BR-04/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
