Element 'ram:RoundingAmount' may occur at maximum 1 times.
ram:RoundingAmount occurs more than once in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
The rounding amount represents a rounding adjustment to the invoice total. Multiple values at this location would apply more than one rounding amount to the monetary total.
ram:RoundingAmount is included more than once in the invoice header. You can resolve this by having only one rounding amount there.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummationin the invoice header. - Check the
ram:RoundingAmountelements it contains and remove any extra occurrences. - Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:RoundingAmount>0.01</ram:RoundingAmount> <ram:RoundingAmount>0.02</ram:RoundingAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:RoundingAmount>0.01</ram:RoundingAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The test counts the direct ram:RoundingAmount elements in the current ram:SpecifiedTradeSettlementHeaderMonetarySummation and allows no more than one occurrence.
The rule applies to ram:SpecifiedTradeSettlementHeaderMonetarySummation in the invoice header’s monetary totals.
rule/@context)assert/@test)