Value of 'ram:CategoryCode' is not allowed.
If ram:CategoryCode has a value, that value must occur in the code list allowed for tax categories. A value not in the list is not allowed; this test accepts an empty value.
The code assigns the VAT breakdown to a defined tax category. A code outside the specified code list cannot correspond to a category defined in that list.
The value entered in ram:CategoryCode is not included in the code list allowed for it. Replace it with a code from that list.
- Locate
ram:CategoryCodein the relevantram:ApplicableTradeTax. - Compare its value with the codes allowed for tax categories.
- Replace any value not in the list with an allowed code.
- Generate the invoice again and validate it once more.
Technical details
The test accepts an empty string value or a value listed as an enumeration under cl[@id=24] in FACTUR-X_EXTENDED_codedb.xml.
The rule checks the value of ram:CategoryCode within the document-level VAT breakdown.
rule/@context)assert/@test)