SDI-00473Errore 00473 SdI

Per il valore indicato nell'elemento 2.1.1.1 <TipoDocumento> il valore presente nell'elemento 1.2.1.1.1 <IdPaese> non è ammesso

In English The seller's country (1.2.1.1.1) is not allowed for this document type: TD17, TD18, TD19 and TD28 need a seller outside Italy, TD29 an Italian one.

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

Context
/p:FatturaElettronica/FatturaElettronicaBody
Test
not(($type = ('TD17', 'TD18', 'TD19', 'TD28') and $seller/IdPaese = 'IT') or ($type = 'TD29' and $seller/IdPaese != 'IT'))

Checked with FatturaPA 1.2.3