Element 'ram:AllowanceTotalAmount' may occur at maximum 1 times.
ram:AllowanceTotalAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation.
ram:AllowanceTotalAmount gives the total allowances for the invoice line. Multiple occurrences would provide more than one value for that total.
The total allowances appear more than once in an invoice line’s settlement. This element may occur there no more than once.
- Look for repeated
ram:AllowanceTotalAmountelements inram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure this element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:AllowanceTotalAmount>10.00</ram:AllowanceTotalAmount> <ram:AllowanceTotalAmount>20.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:AllowanceTotalAmount>10.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts ram:AllowanceTotalAmount elements in the current ram:SpecifiedTradeSettlementLineMonetarySummation; the test passes when there is at most one.
The rule applies to the monetary summation in an invoice line’s settlement and checks ram:AllowanceTotalAmount there.
rule/@context)assert/@test)