Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode is missing from ram:CategoryTradeTax, or the element occurs more than once. The tax information must contain exactly one type code.
ram:TypeCode identifies the tax type in the allowance’s tax information. Exactly one type code makes this information structurally unambiguous.
The tax type is missing from the allowance’s tax information or has been provided more than once. Exactly one ram:TypeCode makes the entry unambiguous.
- Add exactly one
ram:TypeCodetoram:CategoryTradeTax. - Remove duplicate
ram:TypeCodeelements if present. - Generate the invoice again and validate it.
<ram:CategoryTradeTax/>
<ram:CategoryTradeTax> <ram:TypeCode/> </ram:CategoryTradeTax>
Technical details
The test counts ram:TypeCode within ram:CategoryTradeTax and requires the count to equal 1.
The rule applies to ram:TypeCode within ram:CategoryTradeTax, the tax information for a document-level allowance. The allowance in ram:SpecifiedTradeAllowanceCharge is identified by ram:ChargeIndicator having the value false.
rule/@context)assert/@test)