{
  "id": "BR-CL-20",
  "country": "EU",
  "syntax": "ubl",
  "group": "code-list",
  "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": "Coded charge reasons MUST belong to the UNCL 7161 code list",
  "statement_lang": "en",
  "context": "cac:AllowanceCharge[cbc:ChargeIndicator = true()]/cbc:AllowanceChargeReasonCode",
  "test": "((not(contains(normalize-space(.), ' ')) and contains(' AA AAA AAC AAD AAE AAF AAH AAI AAS AAT AAV AAY AAZ ABA ABB ABC ABD ABF ABK ABL ABN ABR ABS ABT ABU ACF ACG ACH ACI ACJ ACK ACL ACM ACS ADC ADE ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADT ADW ADY ADZ AEA AEB AEC AED AEF AEH AEI AEJ AEK AEL AEM AEN AEO AEP AES AET AEU AEV AEW AEX AEY AEZ AJ AU CA CAB CAD CAE CAF CAI CAJ CAK CAL CAM CAN CAO CAP CAQ CAR CAS CAT CAU CAV CAW CAX CAY CAZ CD CG CS CT DAB DAD DAC DAF DAG DAH DAI DAJ DAK DAL DAM DAN DAO DAP DAQ DL EG EP ER FAA FAB FAC FC FH FI GAA HAA HD HH IAA IAB ID IF IR IS KO L1 LA LAA LAB LF MAE MI ML NAA OA PA PAA PC PL PRV RAB RAC RAD RAF RE RF RH RV SA SAA SAD SAE SAI SG SH SM SU TAB TAC TT TV V1 V2 WH XAA YY ZZZ ', concat(' ', normalize-space(.), ' '))))",
  "meaning": "A coded charge reason must belong to the UNCL 7161 code list. The statement says MUST, writes UNCL 7161 with a space, and has no period. The context is a charge whose charge indicator is true, with spaces around =. The test reads the element text and has a space after each comma. The list includes AA and ZZZ. The test does not call exists.",
  "fix": "On a charge, set the reason code to a value from the UNCL 7161 list, with no space in the code.",
  "example_fail": "A charge reason code contains a space, or it is not in the UNCL 7161 list.",
  "example_pass": "A charge reason code is AA, with no space.",
  "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-CL-20/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
