Element 'ram:ActualAmount' must occur exactly 1 times.
The charge does not contain ram:ActualAmount exactly once. The amount is missing or occurs more than once.
ram:ActualAmount provides the actual amount of the charge. Exactly one amount element makes the amount unambiguous.
The charge is missing its actual amount or contains it more than once. A single amount makes the charge clear.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Make sure it contains exactly one
ram:ActualAmountelement. - 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:ActualAmount/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts the direct child elements ram:ActualAmount 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)