- An invoice line shall not contain more than one AdditionalReferencedDocument with TypeCode 130.
Multiple ram:AdditionalReferencedDocument elements in ram:SpecifiedLineTradeSettlement have the value 130 in ram:TypeCode.
A reference document of type 130 may be associated with an invoice line no more than once.
An invoice line contains more than one additional reference document with ram:TypeCode 130. You can resolve this by adjusting the repeated references.
- Find the
ram:AdditionalReferencedDocumentelements withram:TypeCode130inram:SpecifiedLineTradeSettlement. - Keep no more than one of these reference documents for the invoice line.
- Generate the invoice again and validate it.
<ram:SpecifiedLineTradeSettlement> <ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> </ram:AdditionalReferencedDocument> <ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> </ram:AdditionalReferencedDocument> </ram:SpecifiedLineTradeSettlement>
<ram:SpecifiedLineTradeSettlement> <ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> </ram:AdditionalReferencedDocument> </ram:SpecifiedLineTradeSettlement>
Technical details
The rule counts ram:AdditionalReferencedDocument elements in the rule context whose normalized ram:TypeCode equals 130. The count must be no greater than one.
The rule applies to ram:SpecifiedLineTradeSettlement within an invoice line.
rule/@context)assert/@test)