SDI-00471
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.
/p:FatturaElettronica/FatturaElettronicaBody
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
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody
not($type = 'TD07' and $buyer and $seller/IdPaese = $buyer/IdPaese and $seller/IdCodice = $buyer/IdCodice)
Checked with FatturaPA simplified 1.0.2