# SDI-00471

Source: https://xmlvalid.com/rules/SDI-00471

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

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- 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)`

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

- Level: error
- Rule sets: SdI checks (FatturaPA simplified invoice) Specifiche tecniche 1.9.1
- Context: `/s:FatturaElettronicaSemplificata/FatturaElettronicaBody`
- Test: `not($type = 'TD07' and $buyer and $seller/IdPaese = $buyer/IdPaese and $seller/IdCodice = $buyer/IdCodice)`

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

Validate a document against these rules: https://xmlvalid.com/validate
