XV-IT-05

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

The buyer's codice fiscale 1.4.1.2 <CodiceFiscale> has no valid check character; with no partita IVA for the buyer, the SdI rejects it with 00306.

Context
/p:FatturaElettronica/FatturaElettronicaHeader/CessionarioCommittente/DatiAnagrafici
Test
IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)

Checked with FatturaPA 1.2.3

Message

The buyer's codice fiscale 1.3.1.2 <CodiceFiscale> has no valid check character; with no partita IVA for the buyer, the SdI rejects it with 00306.

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CessionarioCommittente/IdentificativiFiscali
Test
IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)

Checked with FatturaPA simplified 1.0.2