Element 'ram:CategoryTradeTax' must occur exactly 1 times.
The element ram:CategoryTradeTax does not occur exactly once in the charge. It is either missing or occurs more than once.
Exactly one ram:CategoryTradeTax assigns the VAT category to the charge. The rule requires this association exactly once.
The charge entry is missing ram:CategoryTradeTax, or the element occurs more than once. The rule allows exactly one occurrence.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Ensure that
ram:CategoryTradeTaxoccurs exactly once in it. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:CategoryTradeTax/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts direct ram:CategoryTradeTax children of the applicable ram:SpecifiedTradeAllowanceCharge and requires exactly one.
The rule applies to an entry marked as a charge in ram:SpecifiedTradeAllowanceCharge at document level.
rule/@context)assert/@test)