What it means
For the specified frameworks in BT-23 and document types, the UBL context selects GROUP lines (BG-25, EXT-FR-FE-163) without a parent identifier (EXT-FR-FE-162), using a GROUP billing reference to the current document. The test requires another cac:BillingReference on the line with a cac:InvoiceDocumentReference/cbc:ID different from the current document number and an existing cbc:IssueDate element. It checks the date element's existence, not whether its content is a valid date or chronologically earlier.
Why it matters
The line-level reference records the date of the invoice associated with that sub-invoice's correction.
How to fix it
Find the affected top-level GROUP line and identify the invoice it corrects. Enter that invoice's number and date in the line's earlier-invoice reference. In UBL, put the date in cac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueDate for that reference, using year-month-day form. In CII, populate the corresponding line-level earlier-invoice date field. Export and recheck the file.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
BR-FR-MV-14-EXT-FR-FE-138 : Date Facture antérieure manquant ligne … : Lorsque le cadre de facturation (BT-23) est S8, B8 ou M8, 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-MV-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-BD-14-EXT-FR-FE-138 Top-level GROUP lines need the earlier invoice date