SDI-00472
Per il valore indicato nell'elemento 2.1.1.1 <TipoDocumento> il cedente/prestatore deve essere uguale al cessionario/committente
In English For this document type (2.1.1.1, TD21 or TD27) the seller and the buyer must be the same.
error: the document is invalid
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 = ('TD21', 'TD27') and $buyer and not($seller/IdPaese = $buyer/IdPaese and $seller/IdCodice = $buyer/IdCodice))
Checked with FatturaPA 1.2.3