Element 'ram:DirectDebitMandateID' may occur at maximum 1 times.
Within ram:SpecifiedTradePaymentTerms, ram:DirectDebitMandateID occurs more than once. This element may occur at most once in this context.
ram:DirectDebitMandateID provides the identifier of the direct debit mandate. The limit ensures that the payment terms do not contain multiple mandate identifiers.
The invoice contains multiple ram:DirectDebitMandateID elements in the payment terms. Only one such element is allowed in this context.
- Locate
ram:SpecifiedTradePaymentTermsin the invoice. - Check its
ram:DirectDebitMandateIDelements and remove the duplicate occurrence. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradePaymentTerms> <ram:DirectDebitMandateID>Mandat-1</ram:DirectDebitMandateID> <ram:DirectDebitMandateID>Mandat-2</ram:DirectDebitMandateID> </ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradePaymentTerms> <ram:DirectDebitMandateID>Mandat-1</ram:DirectDebitMandateID> </ram:SpecifiedTradePaymentTerms>
Technical details
The test counts the direct ram:DirectDebitMandateID elements in ram:SpecifiedTradePaymentTerms and permits no more than one.
The rule applies within ram:SpecifiedTradePaymentTerms at document level.
rule/@context)assert/@test)