Skip to content

Warning

BR-FXEXT-AG-08INI: Check Ceuta and Melilla totals by category and rate

In short

Warning: worth checking.

BR-FXEXT-AG-08INI warns that a category M row's taxable amount (BT-116) does not reconcile using category and rate alone. Check the matching lines, document-level discounts, document-level charges and logistics service charges. If the row is grouped by exemption reason, check that calculation before changing its amount.

On this page

What it means

This warning applies to a header VAT breakdown row (BG-23) with category M (BT-118) and ram:TypeCode equal to VAT without regard to letter case. It selects sources with category M and the row's numeric ram:RateApplicablePercent, ignoring exemption reasons. The expected taxable amount is line amounts (BT-131) minus document-level discounts (BT-92), plus document-level charges (BT-99) and logistics service charges (BT-X-272). The four component totals are each rounded to two decimal places before combination. Lines count only when their subtype is DETAIL or the ram:LineStatusReasonCode element is absent. The permitted difference is one hundredth of the invoice currency unit multiplied by the number of matching lines, discounts and charges, including logistics charges.

Why it matters

This calculation uses all matching sources in category M at the row's rate. BR-FXEXT-AG-08B is not a stricter version of this calculation: it permits either this calculation or the reason-matched calculation reported by BR-FXEXT-AG-08REV.

How to fix it

Recalculate the M total at the row's rate, including logistics service charges and component rounding. Compare it with ram:BasisAmount (BT-116). Check BR-FXEXT-AG-08REV for the same row. If the reason-matched calculation reconciles, retain that valid grouping rather than changing the row just to remove this warning. Otherwise, correct the source amounts, categories, rates or breakdown total and recheck.

Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta

The rule as published

In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “M” ("Ceuta and Mellita tax"), Absolute Value of (VAT category taxable amount (BT-116) - ∑ Invoice line net amounts (BT-131) + Σ Document level allowance amounts (BT-92) - Σ Document level charge amounts (BT-99) - Σ Logistics Service fee amounts (BT-x-272)) <= 0,01 * ((Number of line net amounts (BT-131) + Number of Document level allowance amounts (BT-92) + Number of Document level charge amounts (BT-99) + Number of Logistics Service fee amounts (BT-X-272)), where the VAT category code (BT-151, BT-95, BT-102, BT-X-273) is "Ceuta and Mellita tax" (M), but only for lines where the "Subtype of invoice item" (BT-X-8) has the value "DETAIL" or is not specified.

Business terms: BG-23, BT-92, BT-95, BT-99, BT-102, BT-116, BT-118, BT-131, BT-151

Where this rule applies

Rule set Version
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 EXTENDED 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether BR-FXEXT-AG-08INI still fails, and which other rules do.

Updated 6 November 2026