Element 'ram:LineTotalAmount' must occur exactly 1 times.
ram:LineTotalAmount is missing from ram:SpecifiedTradeSettlementHeaderMonetarySummation or occurs more than once. It must occur exactly once.
ram:LineTotalAmount contains the total of the invoice lines at document level. The required occurrence count ensures that this total amount is present unambiguously.
The invoice line total is missing from the settlement totals or has been entered more than once. This can be resolved by including ram:LineTotalAmount once.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummation. - Include exactly one
ram:LineTotalAmountin it and remove any additional occurrences. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:LineTotalAmount>100.00</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The rule counts the direct ram:LineTotalAmount child elements of ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires the value 1.
The rule applies to the monetary totals of the settlement at document level in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)