Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode is missing from ram:AppliedTradeTax, or the element occurs more than once.
ram:TypeCode identifies the tax type for the tax information. Exactly one element makes this classification unambiguous.
The tax information for the logistics service is missing the tax type, or it includes it more than once. A single entry makes the classification clear.
- Find the relevant
ram:AppliedTradeTax. - Add exactly one
ram:TypeCodeinside it and remove any duplicates. - Generate the invoice again and validate it again.
<ram:AppliedTradeTax/>
<ram:AppliedTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:AppliedTradeTax>
Technical details
The test uses count(ram:TypeCode)=1 to check that ram:AppliedTradeTax contains exactly one ram:TypeCode element.
The rule applies inside ram:AppliedTradeTax, which belongs to the tax information for a logistics service.
rule/@context)assert/@test)