VF-1232

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).

In English A third party identified by IDOtro 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

[1232] 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).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion
Test
not(normalize-space(*:GeneradoPor) = 'T' and normalize-space(*:Generador/*:IDOtro/*:CodigoPais) = 'ES') or normalize-space(*:Generador/*:IDOtro/*:IDType) = '03'

Checked with VERI*FACTU invoice records

Message

[1232] 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).

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

Checked with VERI*FACTU invoice records