Element 'ram:ChargeTotalAmount' may occur at maximum 1 times.
ram:ChargeTotalAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation.
ram:ChargeTotalAmount gives the total charges for the invoice line. Multiple occurrences would provide more than one value for that total.
The total charges appear more than once in an invoice line’s settlement. This element may occur there no more than once.
- Look for repeated
ram:ChargeTotalAmountelements inram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure this element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:ChargeTotalAmount>10.00</ram:ChargeTotalAmount> <ram:ChargeTotalAmount>20.00</ram:ChargeTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:ChargeTotalAmount>10.00</ram:ChargeTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts ram:ChargeTotalAmount 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:ChargeTotalAmount there.
rule/@context)assert/@test)