{
  "id": "UBL-CR-030",
  "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 BillingReference LocaleCode",
  "statement_lang": "en",
  "context": "/ubl:Invoice | /cn:CreditNote",
  "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:LocaleCode)",
  "meaning": "A UBL invoice should not include the BillingReference LocaleCode. The statement says \"should not include the BillingReference LocaleCode\", not \"shall\", and it has no period. The two names are separated by a space. The statement does not name InvoiceDocumentReference. The flag is warning. The context is the same string as BR-CO-18. The published test is not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:LocaleCode). The path uses a slash. It does not call exists.",
  "fix": "Leave BillingReference LocaleCode out of the UBL invoice.",
  "example_fail": "The invoice includes BillingReference LocaleCode.",
  "example_pass": "The invoice does not include BillingReference LocaleCode.",
  "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-030/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
