BR-CL-18

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid Peppol documentation ↗

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

Invoice tax categories MUST be coded using UNCL5305 code list

Context
cac:ClassifiedTaxCategory/cbc:ID
Test
( ( not(contains(normalize-space(.),' ')) and contains( ' AE L M E S Z G O K B ',concat(' ',normalize-space(.),' ') ) ) )

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Invoice tax categories MUST be coded using UNCL 5305 code list

Context
ram:ApplicableTradeTax/ram:CategoryCode
Test
((not(contains(normalize-space(.), ' ')) and contains(' AE L M E S Z G O K B ', concat(' ', normalize-space(.), ' '))))

Checked with EN 16931 Invoice (CII)