Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode is missing from ram:ApplicableTradeTax or occurs more than once. It must occur exactly once.
ram:TypeCode identifies the tax type of the corresponding VAT breakdown entry.
ram:TypeCode 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:TypeCodeoccurs exactly once in it. - Regenerate the invoice and check it again.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:TypeCode/> </ram:ApplicableTradeTax>
Technical details
The test counts the direct ram:TypeCode 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)