Provide the preceding invoice reference

Error BR-55 EN 16931

Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:InvoiceReferencedDocument has no non-empty value in ram:IssuerAssignedID. The reference to the preceding invoice is therefore missing.

What the rule means

BT-25 contains the reference to the preceding invoice. It associates the referenced document with the current invoice.

Affected fields BG-3 BT-25
Please add the reference to the preceding invoice

A referenced invoice document is missing its invoice identifier or reference. You can add it to the preceding invoice entry.

What to do
  1. Check the entries returned by FacturXInvoice.GetInvoiceReferencedDocuments().
  2. Provide a non-empty identifier in ram:IssuerAssignedID for each referenced document.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:InvoiceReferencedDocument>
  <ram:IssuerAssignedID/>
</ram:InvoiceReferencedDocument>
✓ Correct
<ram:InvoiceReferencedDocument>
  <ram:IssuerAssignedID>INV-2025-001</ram:IssuerAssignedID>
</ram:InvoiceReferencedDocument>
Check in FactoorSharp
  • 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.

Where the rule applies

Applies to each referenced document ram:InvoiceReferencedDocument within the invoice settlement.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceReferencedDocument
Test expression (assert/@test)
(ram:IssuerAssignedID!='')