Element 'ram:TypeCode' must occur exactly 1 times.
The element ram:TypeCode does not occur exactly once in ram:CategoryTradeTax. It is either missing or occurs more than once.
Exactly one ram:TypeCode unambiguously identifies the tax type for the charge’s VAT category.
ram:CategoryTradeTax for the charge is missing ram:TypeCode, or the element occurs more than once. The rule requires exactly one.
- Locate
ram:CategoryTradeTaxin the charge. - Ensure that
ram:TypeCodeoccurs exactly once in it. - Generate the invoice again and validate it.
<ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> </ram:CategoryTradeTax>
<ram:CategoryTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:CategoryTradeTax>
Technical details
The test counts direct ram:TypeCode children of ram:CategoryTradeTax and requires exactly one.
The rule applies to ram:CategoryTradeTax of a document-level charge.
rule/@context)assert/@test)