Element 'ram:CategoryCode' must occur exactly 1 times.
ram:CategoryCode is missing from ram:ApplicableTradeTax or occurs more than once. It must occur exactly once.
ram:CategoryCode specifies the tax category of the corresponding VAT breakdown entry.
ram:CategoryCode does not occur exactly once in the VAT breakdown entry. You can resolve this by including the element once in the entry.
- Find the relevant
ram:ApplicableTradeTax. - Check that
ram:CategoryCodeoccurs exactly once in it. - Regenerate the invoice and check it again.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:CategoryCode/> </ram:ApplicableTradeTax>
Technical details
The test counts the direct ram:CategoryCode elements within ram:ApplicableTradeTax and requires a count of 1.
The rule applies to each ram:ApplicableTradeTax element in the document-level VAT breakdown.
rule/@context)assert/@test)