Element 'ram:ActualAmount' must occur exactly 1 times.
In the relevant ram:SpecifiedTradeAllowanceCharge, ram:ActualAmount is missing or occurs more than once. The test requires exactly one occurrence.
ram:ActualAmount contains the actual amount of the allowance on the invoice line. A single amount value is required to specify the allowance unambiguously.
The allowance on the invoice line does not contain one unambiguous actual amount. You can represent it with exactly one ram:ActualAmount.
- Locate the relevant
ram:SpecifiedTradeAllowanceChargeon the invoice line. - Add exactly one
ram:ActualAmountor remove any duplicates. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test requires count(ram:ActualAmount) to equal 1 in the selected allowance.
The rule applies to the ram:ActualAmount amount in an allowance at invoice line level.
rule/@context)assert/@test)