Element 'ram:ChargeIndicator' must occur exactly 1 times.
The element ram:ChargeIndicator does not occur exactly once in this charge. It is either missing or occurs more than once.
Exactly one ram:ChargeIndicator unambiguously identifies whether the amount is an allowance or a charge. This rule concerns the entry marked as a charge.
The charge entry is missing ram:ChargeIndicator, or the element occurs more than once. This can be resolved by having the element occur once.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Ensure that
ram:ChargeIndicatoroccurs exactly once in it. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts direct ram:ChargeIndicator children of the applicable ram:SpecifiedTradeAllowanceCharge and requires exactly one.
The rule applies to a document-level charge marked by ram:ChargeIndicator with the value true in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)