SDI-00471Errore 00471 SdI

Per il valore indicato nell'elemento 2.1.1.1 <TipoDocumento> il cedente/prestatore non può essere uguale al cessionario/committente

In English For this document type (2.1.1.1) the seller and the buyer cannot be the same.

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 = ('TD01', 'TD02', 'TD03', 'TD06', 'TD16', 'TD17', 'TD18', 'TD19', 'TD20', 'TD24', 'TD25', 'TD28', 'TD29') and $buyer and $seller/IdPaese = $buyer/IdPaese and $seller/IdCodice = $buyer/IdCodice)

Checked with FatturaPA 1.2.3

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody
Test
not($type = 'TD07' and $buyer and $seller/IdPaese = $buyer/IdPaese and $seller/IdCodice = $buyer/IdCodice)

Checked with FatturaPA simplified 1.0.2