Element 'ram:GrandTotalAmount' may occur at maximum 1 times.
ram:GrandTotalAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation.
ram:GrandTotalAmount gives the grand total of the invoice line. Multiple occurrences would provide more than one grand total for the same summation.
The grand total appears more than once in an invoice line’s settlement. This element may occur there no more than once.
- Look for repeated
ram:GrandTotalAmountelements inram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure this element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:GrandTotalAmount>100.00</ram:GrandTotalAmount> <ram:GrandTotalAmount>120.00</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:GrandTotalAmount>100.00</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts ram:GrandTotalAmount 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:GrandTotalAmount there.
rule/@context)assert/@test)