Skip to content

Fatal

BR-FR-MV-07_BT-128: Each line's sub-invoice number must match its direct parent's

In short

Fatal: fails the selected checks.

BR-FR-MV-07_BT-128 means a line lacks an AFL sub-invoice number or its number differs from its direct parent's. Under billing framework S8, B8, M8, S9, B9 or M9, enter BT-128 with scheme AFL on every line and correct any mismatch with the direct parent.

On this page

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
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether BR-FR-MV-07_BT-128 still fails, and which other rules do.

Updated 8 November 2026