{
  "id": "BR-23",
  "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 line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).",
  "statement_lang": "en",
  "context": "cac:InvoiceLine | cac:CreditNoteLine",
  "test": "exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)",
  "meaning": "An invoice line (BG-25) must have an invoiced quantity unit of measure code (BT-130). The message starts with \"An\", not \"Each\". It says \"shall have\". The published test checks that the invoiced quantity or the credited quantity has a unit code. The context is the invoice line or the credit note line.",
  "fix": "Add a unit code on the invoiced quantity, or on the credited quantity.",
  "example_fail": "The invoiced quantity has no unit code, and the credited quantity has no unit code.",
  "example_pass": "The invoiced quantity has a unit code, or the credited quantity has a unit code.",
  "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-23/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
