Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).
The ram:InvoiceReferencedDocument has no non-empty value in ram:IssuerAssignedID. The reference to the preceding invoice is therefore missing.
BT-25 contains the reference to the preceding invoice. It associates the referenced document with the current invoice.
A referenced invoice document is missing its invoice identifier or reference. You can add it to the preceding invoice entry.
- Check the entries returned by
FacturXInvoice.GetInvoiceReferencedDocuments(). - Provide a non-empty identifier in
ram:IssuerAssignedIDfor each referenced document. - Generate the invoice again and validate it.
<ram:InvoiceReferencedDocument> <ram:IssuerAssignedID/> </ram:InvoiceReferencedDocument>
<ram:InvoiceReferencedDocument> <ram:IssuerAssignedID>INV-2025-001</ram:IssuerAssignedID> </ram:InvoiceReferencedDocument>
FacturXInvoice.GetInvoiceReferencedDocuments()(BG-3; Id: BT-25)FacturXInvoice._InvoiceReferencedDocuments(BG-3; Id: BT-25)FacturXInvoice.AddInvoiceReferencedDocument(id, IssueDateTime, TypeCode)(BG-3)
Technical details
The test requires ram:IssuerAssignedID in the context of ram:InvoiceReferencedDocument to have a value other than the empty string.
Applies to each referenced document ram:InvoiceReferencedDocument within the invoice settlement.
rule/@context)assert/@test)