What it means
The test counts ram:IncludedSupplyChainTradeLineItem elements (BG-25) with ram:LineStatusReasonCode equal to GROUP and no ram:ParentLineID under ram:AssociatedDocumentLineDocument. The line's ram:SpecifiedLineTradeAgreement/ram:ItemSellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID must equal the header seller's company registration number (BT-30). Exactly one line must qualify. Despite BT-31 in the rule id, this compares company registration numbers, not VAT numbers. It does not itself count all top-level GROUP lines. UBL uses BR-FR-BD-02_BT-30.
Why it matters
The seller's GROUP line needs to identify the same registered seller as the CII document header.
How to fix it
Check that BT-23 describes your invoicing arrangement. If S9, B9 or M9 is correct, set the intended seller line's ram:LineStatusReasonCode to GROUP and omit ram:ParentLineID completely, even an empty element. Under ram:SpecifiedLineTradeAgreement, set ram:ItemSellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID to the header seller's BT-30. Add a genuinely missing line or remove an unintended duplicate so exactly one line qualifies, then recheck.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
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 (CII) | 1.4.0-04 |
Check your file
Drop your e-invoice to see whether BR-FR-BD-02_BT-31 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-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