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).
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.
[1221] El valor del campo IDType del sistema informático es incorrecto (…).
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*/*:SistemaInformatico/*:IDOtro
normalize-space(*:IDType) != '07' and (normalize-space(*:CodigoPais) != 'ES' or normalize-space(*:IDType) = '03')
Checked with VERI*FACTU invoice records