{
  "id": "BR-CO-05",
  "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": "Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.",
  "statement_lang": "en",
  "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
  "test": "true()",
  "meaning": "The statement says a document-level allowance reason code (BT-98) and a document-level allowance reason (BT-97) shall indicate the same type of allowance, and the published test is true(). The statement ends with a period and does not say MUST. The context is an invoice or a credit note allowance whose charge indicator is false, with spaces around = and around the bar. The test does not compare the reason code with the reason text. It does not call exists.",
  "fix": "When both the document-level allowance reason code (BT-98) and the reason (BT-97) are present, make them name the same allowance type. The published test is true().",
  "example_fail": "A document-level allowance has a reason code and a reason text that name different allowance types.",
  "example_pass": "A document-level allowance has a reason code and a reason text that name the same allowance type.",
  "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-CO-05/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
