XV-IT-05
The rule sets below word this rule differently; each wording is shown with its rule set.
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.
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.
/p:FatturaElettronica/FatturaElettronicaHeader/CessionarioCommittente/DatiAnagrafici
IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)
Checked with FatturaPA 1.2.3
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.
/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CessionarioCommittente/IdentificativiFiscali
IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)
Checked with FatturaPA simplified 1.0.2