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).
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.
[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).
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion
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
[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).
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Tercero/*:IDOtro
normalize-space(*:CodigoPais) != 'ES' or normalize-space(*:IDType) = '03'
Checked with VERI*FACTU invoice records