Element 'ram:CategoryTradeTax' must occur exactly 1 times.
The charge does not contain ram:CategoryTradeTax exactly once. The tax entry is missing or occurs more than once.
ram:CategoryTradeTax associates the relevant tax information with the charge. Exactly one such entry makes this association unambiguous.
The charge is missing its tax entry or contains it more than once. A single entry clearly associates the tax information.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Make sure it contains exactly one
ram:CategoryTradeTaxelement. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts the direct child elements ram:CategoryTradeTax in the ram:SpecifiedTradeAllowanceCharge selected by the charge indicator and requires a count of 1.
The rule applies to a document-level ram:SpecifiedTradeAllowanceCharge when udt:Indicator in ram:ChargeIndicator has the value true.
rule/@context)assert/@test)