Element 'ram:ActualAmount' must occur exactly 1 times.
The element ram:ActualAmount does not occur exactly once in the charge. It is either missing or occurs more than once.
The charge must contain exactly one actual amount so that the amount for this entry is unambiguous.
The charge entry is missing ram:ActualAmount, or the element occurs more than once. Ensure that the entry contains exactly one such element.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Ensure that
ram:ActualAmountoccurs 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:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts direct ram:ActualAmount 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)