What it means
For these billing frameworks in BT-23, every line (BG-25) must have a populated AFL sub-invoice number. If the line has a parent identifier (EXT-FR-FE-162), its number must equal that direct parent's number. In UBL, the reference is cac:DocumentReference/cbc:ID with schemeID AFL under a reference with cbc:DocumentTypeCode 130. In CII, it is ram:IssuerAssignedID with ram:ReferenceTypeCode AFL and ram:TypeCode 130, and the parent is identified by ram:ParentLineID.
Why it matters
Repeating the direct parent's sub-invoice number keeps the linked lines associated with the same sub-invoice.
How to fix it
Populate the AFL reference on each affected line, including detail lines. In CII, both the line's AFL reference and any direct parent's AFL reference must have ram:TypeCode 130. If a parent identifier is present, find that exact parent and compare the two AFL values. Correct the number or the parent link according to which sub-invoice the line actually belongs to. Do not assume the direct parent is always a top-level GROUP line. Export and recheck the file.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
IDligne … , ID parent ligne … , numfact en ligne … , numfact ligne parent : … . Lorsque le cadre de facturation (BT-23) est S8, B8, M8 ou S9, B9, M9, chaque ligne (BG-25) doit contenir un numéro de facture codifié AFL (BT-128). Si la ligne a un identifiant de ligne parent (EXT-FR-FE-162), ce numéro doit être identique à celui de la ligne parent. Where France CTC (CII) run it, the rule reads:
IDligne … , ID parent ligne … , numfact en ligne … , numfact ligne parent : … . Lorsque le cadre de facturation (BT-23) est S8, B8, M8 ou S9, B9, M9, chaque ligne (BG-25) doit contenir un numéro de facture codifié AFL (ram:IssuerAssignedID). Si la ligne a un identifiant de ligne parent (ram:ParentLineID), ce numéro doit être identique à celui de la ligne parent. Business terms: BG-25, BT-23, BT-128
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-07_BT-128 still fails, and which other rules do.
Related rules
- BR-FR-MV-11_BT-128 Check the main seller's GROUP numbering condition
- 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