Element 'ram:AllowanceTotalAmount' may occur at maximum 1 times.
ram:AllowanceTotalAmount occurs more than once in ram:SpecifiedTradeSettlementHeaderMonetarySummation. The element may occur there at most once.
ram:AllowanceTotalAmount contains the total of allowances at document level. Limiting it to at most one element prevents the total from being stated multiple times.
The allowance total has been entered more than once in the settlement totals. Remove the additional occurrences of ram:AllowanceTotalAmount.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummation. - Check its
ram:AllowanceTotalAmountelements and remove all but at most one. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:AllowanceTotalAmount>10.00</ram:AllowanceTotalAmount> <ram:AllowanceTotalAmount>5.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:AllowanceTotalAmount>10.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The rule counts the direct ram:AllowanceTotalAmount child elements of ram:SpecifiedTradeSettlementHeaderMonetarySummation and permits a count of 0 or 1.
The rule applies to the monetary totals of the settlement at document level in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)