Element 'ram:ChargeIndicator' must occur exactly 1 times.
The charge does not contain ram:ChargeIndicator exactly once. The element is missing or occurs more than once.
ram:ChargeIndicator identifies whether the amount is a charge. A single, clear indicator distinguishes a charge from an allowance.
The charge is missing ram:ChargeIndicator or contains it more than once. A single indicator makes the type of amount clear.
- Locate the charge in
ram:SpecifiedTradeAllowanceCharge. - Make sure there is exactly one
ram:ChargeIndicatorelement withudt:Indicatorset totrue. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge/>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts the direct child elements ram:ChargeIndicator in the ram:SpecifiedTradeAllowanceCharge selected by udt:Indicator equal to true 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)