Element 'ram:CategoryTradeTax' must occur exactly 1 times.
The selected allowance does not contain exactly one ram:CategoryTradeTax. The element is either missing or occurs more than once.
ram:CategoryTradeTax assigns a VAT category to the allowance. The rule requires exactly one such element for the allowance being checked.
ram:CategoryTradeTax is missing from the allowance or is entered more than once. Add or limit the VAT category so that there is exactly one entry.
- Locate the allowance in
ram:SpecifiedTradeAllowanceChargewith the valuefalseinudt:Indicator. - Ensure that it contains exactly one
ram:CategoryTradeTax. - Generate the invoice again and validate it once more.
<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 context selects ram:SpecifiedTradeAllowanceCharge with a ram:ChargeIndicator/udt:Indicator value of false. It then checks that there is exactly one direct ram:CategoryTradeTax element.
The rule applies to a document-level allowance whose ram:ChargeIndicator has the value false in udt:Indicator.
rule/@context)assert/@test)