Element 'ram:TypeCode' must occur exactly 1 times.
The allowance’s tax information does not contain ram:TypeCode exactly once. It is missing or occurs more than once.
The type code identifies the kind of tax information. Exactly one value makes the tax classification unambiguous.
The tax information for an allowance is missing a type code or contains it more than once. You can resolve this by providing it exactly once.
- Locate the allowance’s
ram:CategoryTradeTaxtax information. - Make sure it contains exactly one
ram:TypeCodeelement. - Generate the invoice again and validate it again.
<ram:CategoryTradeTax/>
<ram:CategoryTradeTax> <ram:TypeCode/> </ram:CategoryTradeTax>
Technical details
The test counts the direct child elements ram:TypeCode within ram:CategoryTradeTax and requires a count of 1.
The rule applies to the ram:CategoryTradeTax tax information of a document-level allowance in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)