Element 'ram:ChargeTotalAmount' may occur at maximum 1 times.
ram:SpecifiedTradeSettlementHeaderMonetarySummation contains ram:ChargeTotalAmount more than once. The element may be absent but must not occur multiple times.
ram:ChargeTotalAmount states the total charges at document level. A single entry avoids ambiguity in the charge total.
The total charges are stated more than once in ram:SpecifiedTradeSettlementHeaderMonetarySummation. Remove the duplicate occurrences; the entry may also be omitted.
- Locate
ram:SpecifiedTradeSettlementHeaderMonetarySummation. - Check how many times
ram:ChargeTotalAmountoccurs in it. - Keep at most one
ram:ChargeTotalAmount, or remove the element entirely. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:ChargeTotalAmount>...</ram:ChargeTotalAmount> <ram:ChargeTotalAmount>...</ram:ChargeTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
Technical details
The XPath test counts the direct ram:ChargeTotalAmount elements within ram:SpecifiedTradeSettlementHeaderMonetarySummation and allows at most one.
The rule applies to the settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)