Element 'ram:CategoryCode' must occur exactly 1 times.
ram:CategoryCode is missing from ram:CategoryTradeTax, or the element occurs more than once. The tax information must contain exactly one tax category.
ram:CategoryCode specifies the tax category for the allowance’s tax information. Exactly one category is required to make the classification structurally unambiguous.
The tax category is missing from the allowance’s tax information or has been provided more than once. Exactly one ram:CategoryCode makes the entry unambiguous.
- Add exactly one
ram:CategoryCodetoram:CategoryTradeTax. - Remove duplicate
ram:CategoryCodeelements if present. - Generate the invoice again and validate it.
<ram:CategoryTradeTax/>
<ram:CategoryTradeTax> <ram:CategoryCode/> </ram:CategoryTradeTax>
Technical details
The test counts ram:CategoryCode within ram:CategoryTradeTax and requires the count to equal 1.
The rule applies to ram:CategoryCode 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)