VF-1221

El valor del campo IDType del sistema informático es incorrecto (…).

In English The producer of the invoicing software, identified by IDOtro, may not have IDType 07, and with CodigoPais ES must have IDType 03 (passport).

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

[1221] El valor del campo IDType del sistema informático es incorrecto (…).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*/*:SistemaInformatico/*:IDOtro
Test
normalize-space(*:IDType) != '07' and (normalize-space(*:CodigoPais) != 'ES' or normalize-space(*:IDType) = '03')

Checked with VERI*FACTU invoice records