FatturaPA (Italy / SdI)
00424
Imposta non calcolata correttamente (riepilogo)
What it means
In a DatiRiepilogo block the declared Imposta does not match ImponibileImporto x AliquotaIVA / 100 within the rounding tolerance (the SdI allows the difference declared in Arrotondamento, typically a cent or two).
How to fix it
Set Imposta = round(ImponibileImporto * AliquotaIVA / 100, 2). If you intentionally round differently, declare the delta in the Arrotondamento element of the same DatiRiepilogo block.
Example
<AliquotaIVA>22.00</AliquotaIVA><ImponibileImporto>5.00</ImponibileImporto><Imposta>1.10</Imposta>
Catch this before it reaches the SdI:
# CLI
npx @eleata/validate-einvoice validate invoice.xml --format fatturapa
# GitHub Action — fail the build on any invalid invoice
- uses: hernaninverso/validate-einvoice-action@v1
with:
files: invoices/**/*.xml
api-key: ${{ secrets.EINVOICE_API_KEY }}