SDI-00476Errore 00476 SdI

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

In English The seller's and the buyer's VAT numbers cannot both be foreign (IdPaese other than IT).

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

Gli elementi 1.2.1.1.1 <IdPaese> e 1.4.1.1.1 <IdPaese> non possono essere entrambi valorizzati con codice diverso da IT

Context
/p:FatturaElettronica
Test
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')

Checked with FatturaPA 1.2.3

Message

Gli elementi 1.2.1.1 <IdPaese> e 1.3.1.1.1 <IdPaese> non possono essere entrambi valorizzati con codice diverso da IT

Context
/s:FatturaElettronicaSemplificata
Test
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')

Checked with FatturaPA simplified 1.0.2