Element 'ram:TotalPrepaidAmount' may occur at maximum 1 times.
ram:TotalPrepaidAmount occurs more than once in ram:SpecifiedTradeSettlementHeaderMonetarySummation. The element may be absent or occur once.
ram:TotalPrepaidAmount states the total amount already paid. Allowing at most one element ensures that this amount is not stated more than once.
The total amount already paid is entered more than once in the monetary settlement totals. You can resolve this by providing no more than one ram:TotalPrepaidAmount.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummationin the invoice. - Check how many times
ram:TotalPrepaidAmountoccurs in it. - Make sure the element occurs no more than once.
- Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TotalPrepaidAmount>20.00</ram:TotalPrepaidAmount> <ram:TotalPrepaidAmount>20.00</ram:TotalPrepaidAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TotalPrepaidAmount>20.00</ram:TotalPrepaidAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The rule counts the ram:TotalPrepaidAmount elements directly under ram:SpecifiedTradeSettlementHeaderMonetarySummation and permits zero or one.
The rule applies to the total amount already prepaid within the monetary settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)