Skip to content

Warning

CII-DT-040: Remove basis quantities from tax blocks

In short

Warning: worth checking.

CII-DT-040 warns that a CII tax block contains ram:BasisQuantity. Remove that element from the affected tax block, not the billed quantity or price base quantity elsewhere on the invoice.

On this page

What it means

The check flags ram:BasisQuantity in every CII ram element whose name ends in TradeTax. This includes tax blocks in the VAT breakdown, on lines, and on document-level discounts or charges. It does not prohibit quantity fields outside those tax blocks.

Why it matters

This CII tax mapping does not use the extra tax basis quantity field. The warning does not establish acceptance or confirm the VAT calculation.

How to fix it

Remove ram:BasisQuantity from the affected tax block. Keep the invoice's legitimate billed quantities and price base quantities in their proper fields. Do not change the taxable amount, VAT rate or VAT amount merely to remove this element. If your software keeps adding it, ask its supplier to correct the CII export. Export the corrected file and recheck it.

Once the file is corrected, check it again for free: Validate an invoice against EN 16931

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

The rule as published

BasisQuantity should not be present

Where this rule applies

Rule set Version
EN 16931 (CII) 1.3.17
XRechnung 3.0 (CII) 3.0.2
NLCIUS (CII) 1.0.3.13
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 CII-DT-040 still fails, and which other rules do.

Updated 6 November 2026