Element 'ram:GrandTotalAmount' must occur exactly 1 times.
ram:GrandTotalAmount is missing from ram:SpecifiedTradeSettlementHeaderMonetarySummation or occurs more than once. The rule requires exactly one such element.
ram:GrandTotalAmount gives the invoice total including VAT. A single value ensures that the total amount is stated unambiguously.
The invoice total is missing from the monetary settlement totals or entered more than once. You can resolve this by having exactly one ram:GrandTotalAmount.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummationin the invoice. - Check that it contains exactly one
ram:GrandTotalAmount. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:GrandTotalAmount>119.00</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The rule counts the ram:GrandTotalAmount elements directly under ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires the count to equal one.
The rule applies to the monetary settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)