Element 'ram:PartialPaymentAmount' may occur at maximum 1 times.
The ram:PartialPaymentAmount element occurs more than once within the same ram:SpecifiedTradePaymentTerms.
The rule limits the number of partial payment amount entries in the payment terms to no more than one.
The payment terms contain ram:PartialPaymentAmount more than once. The entry can be limited to a single occurrence.
- Find all occurrences of
ram:PartialPaymentAmountinram:SpecifiedTradePaymentTerms. - Remove the extra occurrences so that no more than one remains.
- Generate the invoice again and validate it.
<ram:SpecifiedTradePaymentTerms> <ram:PartialPaymentAmount>50.00</ram:PartialPaymentAmount> <ram:PartialPaymentAmount>50.00</ram:PartialPaymentAmount> </ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradePaymentTerms> <ram:PartialPaymentAmount>50.00</ram:PartialPaymentAmount> </ram:SpecifiedTradePaymentTerms>
Technical details
The XPath counts direct ram:PartialPaymentAmount elements within ram:SpecifiedTradePaymentTerms and requires the count to be at most one.
The rule applies to the ram:PartialPaymentAmount element within ram:SpecifiedTradePaymentTerms.
rule/@context)assert/@test)