Element 'ram:GrandTotalAmount' may occur at maximum 1 times.
ram:GrandTotalAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation. The test allows at most one such element.
The grand total amount for the invoice line is stated at most once in this summation.
ram:GrandTotalAmount was provided more than once for an invoice line. The element may occur only once in the summation.
- Find
ram:GrandTotalAmountinram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure the element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:GrandTotalAmount>10.00</ram:GrandTotalAmount> <ram:GrandTotalAmount>20.00</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:GrandTotalAmount>10.00</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts the child ram:GrandTotalAmount elements and requires their number to be no greater than one.
The rule applies in ram:SpecifiedTradeSettlementLineMonetarySummation within the settlement of an invoice line.
rule/@context)assert/@test)