Element 'ram:ChargeIndicator' must occur exactly 1 times.
The allowance does not contain exactly one ram:ChargeIndicator. The rule checks the number of these elements within ram:SpecifiedTradeAllowanceCharge.
ram:ChargeIndicator indicates whether the amount is an allowance or a charge. This allowance must contain the indicator exactly once.
The allowance on the invoice line does not contain exactly one indicator. You can adjust the number of indicator elements in the allowance.
- Locate the relevant
ram:SpecifiedTradeAllowanceChargeon the invoice line. - Ensure it contains exactly one
ram:ChargeIndicatorwith the valuefalse. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts the direct ram:ChargeIndicator elements in ram:SpecifiedTradeAllowanceCharge and requires a count of 1.
The rule applies to an allowance on an invoice line whose ram:ChargeIndicator has the value false.
rule/@context)assert/@test)