Element 'ram:AllowanceTotalAmount' may occur at maximum 1 times.
ram:AllowanceTotalAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation. The test allows at most one such element.
The total amount of allowances for the invoice line is stated at most once in this summation.
ram:AllowanceTotalAmount was provided more than once for an invoice line. You can resolve this by having the element occur only once in the summation.
- Find
ram:AllowanceTotalAmountinram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure the element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:AllowanceTotalAmount>1.00</ram:AllowanceTotalAmount> <ram:AllowanceTotalAmount>2.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:AllowanceTotalAmount>1.00</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts the child ram:AllowanceTotalAmount elements and requires their number to be no greater than one.
The rule applies in ram:SpecifiedTradeSettlementLineMonetarySummation within the settlement of an invoice line.
rule/@context)assert/@test)