{
  "id": "UBL-CR-077",
  "country": "EU",
  "syntax": "ubl",
  "group": "excluded",
  "severity": "warning",
  "severity_note": "warning, 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": "A UBL invoice should not include the StatementDocumentReference",
  "statement_lang": "en",
  "context": "/ubl:Invoice | /cn:CreditNote",
  "test": "not(cac:StatementDocumentReference)",
  "meaning": "A UBL invoice should not include the StatementDocumentReference. The statement says \"should not include the StatementDocumentReference\", not \"shall\", and it has no period. It names one element. The flag is warning. The context is the same string as BR-CO-18. The published test is not(cac:StatementDocumentReference). The test has no slash. It reads cac:StatementDocumentReference and no child. It does not call exists.",
  "fix": "Leave StatementDocumentReference out of the UBL invoice.",
  "example_fail": "The invoice includes StatementDocumentReference.",
  "example_pass": "The invoice does not include StatementDocumentReference.",
  "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/UBL-CR-077/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
