What it means
For these frameworks, the test counts cac:BillingReference elements on invoice or credit note lines (BG-25). A reference qualifies when its cac:InvoiceDocumentReference/cbc:ID equals the current document number, its cac:InvoiceDocumentReference/cbc:DocumentStatusCode is GROUP, it has no cac:BillingReferenceLine/cbc:ID, and the line's cac:Item/cac:ManufacturerParty/cac:PartyLegalEntity/cbc:CompanyID equals the header seller's BT-30. Exactly one reference must qualify. It counts references, not distinct lines. CII uses BR-FR-BD-02_BT-31.
Why it matters
The check ties the seller's GROUP reference to the same registered seller as the document header.
How to fix it
Check that BT-23 describes your invoicing arrangement. If S9, B9 or M9 is correct, inspect the intended seller GROUP line. Its billing reference must identify the current document, carry status GROUP and omit cac:BillingReferenceLine/cbc:ID completely, even an empty element. Set the line seller's company registration number (EXT-FR-FE-167) to the header seller's BT-30. Correct missing or unintended duplicate qualifying references so exactly one matches, then recheck.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
invoiceID : … BR-FR-BD-02/BT-30 : Lorsque le cadre de facturation (BT-23) est S9, B9 ou M9, la facture doit contenir exactement deux ligne (BG-25) avec le sous-type de ligne (ram:LineStatusReasonCode) égal à "GROUP" et sans identifiant de ligne parent (ram:ParentLineID), pour lesquelles l'une a pour ID legal Vendeur à la ligne (EXT-FR-FE-167) l'ID légal du VENDEUR (BT-30). Veuillez vérifier qu'il y a une ligne GROUP avec ID Vendeur de ligne = ID VENDEUR (BT-30). Business terms: BG-25, BT-23, BT-30
Where this rule applies
| Rule set | Version |
|---|---|
| France CTC (UBL invoice) | 1.4.0-04 |
| France CTC (UBL credit note) | 1.4.0-04 |
Check your file
Drop your e-invoice to see whether BR-FR-BD-02_BT-30 still fails, and which other rules do.
Related rules
- BR-FR-BD-02_BT-31 Exactly one GROUP line must match the seller
- BR-FR-MV-11_BT-128 Check the main seller's GROUP numbering condition
- 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