# XV-IT-05

Source: https://xmlvalid.com/rules/XV-IT-05

> 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.

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaHeader/CessionarioCommittente/DatiAnagrafici`
- Test: `IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)`

> 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.

- Level: error
- Rule sets: SdI checks (FatturaPA simplified invoice) Specifiche tecniche 1.9.1
- Context: `/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CessionarioCommittente/IdentificativiFiscali`
- Test: `IdFiscaleIVA or not(CodiceFiscale) or it:cf(CodiceFiscale)`

Validate a document against these rules: https://xmlvalid.com/validate
