XV-IT-03
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 partita IVA of a tax representative (1.3.1.1.2 or 1.4.4.1.2 <IdCodice>) is not eleven digits with a valid check digit; the SdI rejects it with 00303.
/p:FatturaElettronica/FatturaElettronicaHeader/RappresentanteFiscale/DatiAnagrafici/IdFiscaleIVA[IdPaese = 'IT'] | /p:FatturaElettronica/FatturaElettronicaHeader/CessionarioCommittente/RappresentanteFiscale/IdFiscaleIVA[IdPaese = 'IT']
it:piva(IdCodice)
Checked with FatturaPA 1.2.3
The partita IVA of a tax representative (1.2.8.1.2 or 1.3.2.6.1.2 <IdCodice>) is not eleven digits with a valid check digit; the SdI rejects it with 00303.
/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CedentePrestatore/RappresentanteFiscale/IdFiscaleIVA[IdPaese = 'IT'] | /s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CessionarioCommittente/AltriDatiIdentificativi/RappresentanteFiscale/IdFiscaleIVA[IdPaese = 'IT']
it:piva(IdCodice)
Checked with FatturaPA simplified 1.0.2