Element 'ram:CategoryTradeTax' must occur exactly 1 times.
The allowance is missing ram:CategoryTradeTax, or the element occurs more than once. Exactly one tax entry must be present.
ram:CategoryTradeTax associates the relevant tax information with the allowance. A single tax entry is required to make this association unambiguous.
The allowance’s tax information is missing or appears more than once. A single entry can be associated unambiguously.
- Add exactly one
ram:CategoryTradeTaxto the relevantram:SpecifiedTradeAllowanceCharge. - Remove duplicate
ram:CategoryTradeTaxelements if present. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts ram:CategoryTradeTax in the context of an allowance where ram:ChargeIndicator is false and requires exactly one occurrence.
The rule applies to the tax information ram:CategoryTradeTax for a document-level allowance in ram:SpecifiedTradeAllowanceCharge. The allowance is identified by ram:ChargeIndicator having the value false.
rule/@context)assert/@test)