Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122).
An ram:AdditionalReferencedDocument does not contain a non-empty ram:IssuerAssignedID. This value is the supporting document reference (BT-122).
The reference (BT-122) identifies the supporting document associated with the invoice.
A supporting document has a missing or empty reference. Add the reference so that the document is identified in the invoice.
- Find the relevant
ram:AdditionalReferencedDocument. - Check the
AdditionalReferencedDocumententry or the call toAddAdditionalReferencedDocument(...). - Fill
ram:IssuerAssignedIDwith the supporting document reference. - Generate the invoice again and validate it once more.
<ram:AdditionalReferencedDocument> <ram:IssuerAssignedID/> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:IssuerAssignedID>REF-123</ram:IssuerAssignedID> </ram:AdditionalReferencedDocument>
AdditionalReferencedDocument(Header level: BT-122)AdditionalReferencedDocument.TypeCode(BT-122-0)FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID)(id: BT-122)
Technical details
For each ram:AdditionalReferencedDocument in context, the expression (ram:IssuerAssignedID!='') checks whether its ram:IssuerAssignedID has a non-empty value.
The rule applies to each ram:AdditionalReferencedDocument in the invoice.
rule/@context)assert/@test)