Element 'ram:InvoiceSpecifiedReferencedDocument' may occur at maximum 1 times.
SpecifiedAdvancePayment contains more than one ram:InvoiceSpecifiedReferencedDocument element.
The invoice reference document associates the advance payment with a referenced invoice. This rule limits the number of such references to at most one.
SpecifiedAdvancePayment contains more than one invoice reference document. You can resolve this by providing at most one ram:InvoiceSpecifiedReferencedDocument there.
- Locate
SpecifiedAdvancePaymentin the invoice settlement information. - Check the
ram:InvoiceSpecifiedReferencedDocumentelements it contains. - Ensure that no more than one such element is present.
- Generate the invoice again and validate it.
<ram:SpecifiedAdvancePayment> <ram:InvoiceSpecifiedReferencedDocument/> <ram:InvoiceSpecifiedReferencedDocument/> </ram:SpecifiedAdvancePayment>
<ram:SpecifiedAdvancePayment> <ram:InvoiceSpecifiedReferencedDocument/> </ram:SpecifiedAdvancePayment>
Technical details
The rule counts the direct ram:InvoiceSpecifiedReferencedDocument elements in the current SpecifiedAdvancePayment and permits no more than one.
The rule applies to SpecifiedAdvancePayment within the invoice settlement information and its ram:InvoiceSpecifiedReferencedDocument elements.
rule/@context)assert/@test)