Element 'ram:AllowanceTotalAmount' may occur at maximum 1 times.
ram:SpecifiedTradeSettlementHeaderMonetarySummation contains ram:AllowanceTotalAmount more than once. The element may be absent but must not occur multiple times.
ram:AllowanceTotalAmount states the total allowances at document level. A single entry avoids ambiguity in the allowance total.
The total allowances 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:AllowanceTotalAmountoccurs in it. - Keep at most one
ram:AllowanceTotalAmount, or remove the element entirely. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:AllowanceTotalAmount>...</ram:AllowanceTotalAmount> <ram:AllowanceTotalAmount>...</ram:AllowanceTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
Technical details
The XPath test counts the direct ram:AllowanceTotalAmount elements within ram:SpecifiedTradeSettlementHeaderMonetarySummation and allows at most one.
The rule applies to the settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)