# XV-IT-04

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

> The buyer's partita IVA 1.4.1.1.2 <IdCodice> is not eleven digits with a valid check digit; the SdI rejects it with 00305.

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaHeader/CessionarioCommittente/DatiAnagrafici`
- Test: `not(IdFiscaleIVA/IdPaese = 'IT') or it:piva(IdFiscaleIVA/IdCodice)`

> The buyer's partita IVA 1.3.1.1.2 <IdCodice> is not eleven digits with a valid check digit; the SdI rejects it with 00305.

- Level: error
- Rule sets: SdI checks (FatturaPA simplified invoice) Specifiche tecniche 1.9.1
- Context: `/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CessionarioCommittente/IdentificativiFiscali`
- Test: `not(IdFiscaleIVA/IdPaese = 'IT') or it:piva(IdFiscaleIVA/IdCodice)`

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