What it means
For those frameworks and document types, the UBL check runs on line billing references (BG-25) that identify the current document, carry GROUP (EXT-FR-FE-163) and have no parent line ID (EXT-FR-FE-162). It requires cac:InvoiceDocumentReference/cbc:IssueDate (EXT-FR-FE-138) in a billing reference on the same line whose cbc:ID (EXT-FR-FE-136) differs from the current document number. This tests date-element presence, not its content, format or chronological order. A blank date element passes this check. In CII, the check runs on each GROUP line with no parent line ID and requires ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString, without requiring an invoice identifier different from the current document number.
Why it matters
The date forms part of the line's reference to the invoice being corrected. It belongs with that earlier invoice number, not with the reference to the current document.
How to fix it
Find the affected UBL line's billing reference to the actual earlier invoice. Set cac:InvoiceDocumentReference/cbc:ID to that invoice number and enter its invoice date in cbc:IssueDate. If the reference is missing, add it separately from the GROUP reference to the current document. In CII, enter the earlier invoice's date in ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString on the affected GROUP line. Take the date from the earlier invoice, not from the correction, then recheck your file.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
BR-FR-BD-14-EXT-FR-FE-138 : Date Facture antérieure manquant ligne … : Lorsque le cadre de facturation (BT-23) est S9, B9 ou M9, et pour les factures rectificatives et avoirs chaque ligne (BG-25) avec un sous-type de ligne (EXT-FR-FE-163) égal à "GROUP" et sans identifiant de ligne Parent (EXT-FR-FE-162) doit comprendre un identifiant de facture antérieure à la ligne (EXT-FR-FE-136) ainsi que sa date (EXT-FR-FE-138). Business terms: BG-25, BT-23
Where this rule applies
| Rule set | Version |
|---|---|
| France CTC (UBL invoice) | 1.4.0-04 |
| France CTC (UBL credit note) | 1.4.0-04 |
| France CTC (CII) | 1.4.0-04 |
Check your file
Drop your e-invoice to see whether BR-FR-BD-14-EXT-FR-FE-138 still fails, and which other rules do.
Related rules
- BR-FR-BD-02_BT-30 Exactly one GROUP reference must match the seller
- BR-FR-BD-02_BT-31 Exactly one GROUP line must match the seller
- BR-FR-BD-02_BT-47 S9, B9 and M9 invoices need a GROUP line for the buyer
- BR-FR-BD-02_EXT-FR-FE-163 S9, B9 and M9 need two GROUP billing references
- BR-FR-BD-14-EXT-FR-FE-136 Top-level GROUP lines need an earlier invoice reference
- BR-FR-MV-01_EXT-FR-FE-163 Every line of a multi-seller invoice needs a line sub-type