Element 'ram:TotalAllowanceChargeAmount' may occur at maximum 1 times.
ram:TotalAllowanceChargeAmount occurs more than once in ram:SpecifiedTradeSettlementLineMonetarySummation.
ram:TotalAllowanceChargeAmount gives the total amount of allowances and charges for the invoice line. Multiple occurrences would provide more than one value for this total.
The total of allowances and charges appears more than once in an invoice line’s settlement. This element may occur there no more than once.
- Look for repeated
ram:TotalAllowanceChargeAmountelements inram:SpecifiedTradeSettlementLineMonetarySummation. - Make sure this element occurs there no more than once.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TotalAllowanceChargeAmount>10.00</ram:TotalAllowanceChargeAmount> <ram:TotalAllowanceChargeAmount>20.00</ram:TotalAllowanceChargeAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TotalAllowanceChargeAmount>10.00</ram:TotalAllowanceChargeAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts ram:TotalAllowanceChargeAmount elements in the current ram:SpecifiedTradeSettlementLineMonetarySummation; the test passes when there is at most one.
The rule applies to the monetary summation in an invoice line’s settlement and checks ram:TotalAllowanceChargeAmount there.
rule/@context)assert/@test)