Element 'ram:ChargeIndicator' must occur exactly 1 times.
The charge 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 charge must contain the indicator exactly once.
The charge on the invoice line does not contain exactly one indicator. You can adjust the number of indicator elements in the charge.
- Locate the relevant
ram:SpecifiedTradeAllowanceChargeon the invoice line. - Ensure it contains exactly one
ram:ChargeIndicatorwith the valuetrue. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</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 a charge on an invoice line whose ram:ChargeIndicator has the value true.
rule/@context)assert/@test)