VF-1234

Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer Pasaporte (03) o No Censado (07).

In English A recipient identified by IDOtro with CodigoPais ES must have IDType 03 (passport) or 07 (not registered); a Spanish company or person with a NIF goes under NIF.

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.

Message

[1234] Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer Pasaporte (03) o No Censado (07).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Destinatarios/*:IDDestinatario/*:IDOtro
Test
$country != 'ES' or $type = ('03', '07')

Checked with VERI*FACTU invoice records