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