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