Element 'ram:TypeCode' must occur exactly 1 times.
For a charge, ram:TypeCode is missing from ram:CategoryTradeTax or occurs there more than once. It must occur exactly once.
The tax type is part of the charge’s tax information. Exactly one value ensures that this information is present unambiguously.
For a charge, the tax type does not occur exactly once in ram:CategoryTradeTax. You can resolve this in the charge’s tax information.
- Find the charge and its
ram:CategoryTradeTax. - Ensure that it contains exactly one
ram:TypeCode. - Generate the invoice again and validate it once more.
<ram:CategoryTradeTax/>
<ram:CategoryTradeTax> <ram:TypeCode/> </ram:CategoryTradeTax>
Technical details
Within ram:CategoryTradeTax, the number of ram:TypeCode elements is checked to be exactly one.
The rule applies to CategoryTradeTax for a document-level charge in the settlement.
rule/@context)assert/@test)