Element 'ram:ActualAmount' must occur exactly 1 times.
The charge does not contain exactly one ram:ActualAmount. The rule checks the number of these elements within ram:SpecifiedTradeAllowanceCharge.
ram:ActualAmount contains the amount of the charge. Without exactly one such element, the charge amount is not specified unambiguously.
The charge on the invoice line does not contain exactly one amount. You can adjust the number of amount elements in the charge.
- Locate the relevant
ram:SpecifiedTradeAllowanceChargeon the invoice line. - Ensure it contains exactly one
ram:ActualAmount. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>1.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts the direct ram:ActualAmount 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)