Element 'ram:ActualAmount' must occur exactly 1 times.
The selected allowance does not contain exactly one ram:ActualAmount. The element is either missing or occurs more than once.
ram:ActualAmount contains the allowance amount. The rule requires exactly one such amount for the allowance being checked.
ram:ActualAmount is missing from the allowance or is entered more than once. You can correct this by providing exactly one amount.
- Locate the allowance in
ram:SpecifiedTradeAllowanceChargewith the valuefalseinudt:Indicator. - Ensure that it contains exactly one
ram:ActualAmount. - 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:ActualAmount>10.00</ram:ActualAmount> </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:ActualAmount element.
The rule applies to a document-level allowance whose ram:ChargeIndicator has the value false in udt:Indicator.
rule/@context)assert/@test)