Element 'ram:TotalAllowanceChargeAmount' may occur at maximum 1 times.
ram:TotalAllowanceChargeAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation. The test allows at most one such element.
The total amount of allowances and charges for the invoice line is stated at most once in this summation.
ram:TotalAllowanceChargeAmount was provided more than once for an invoice line. The element may occur only once in the summation.
- Find
ram:TotalAllowanceChargeAmountinram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure the element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TotalAllowanceChargeAmount>1.00</ram:TotalAllowanceChargeAmount> <ram:TotalAllowanceChargeAmount>2.00</ram:TotalAllowanceChargeAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TotalAllowanceChargeAmount>1.00</ram:TotalAllowanceChargeAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts the child ram:TotalAllowanceChargeAmount 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)