VF-1156

Para el bloque IDOtro y IDType NIF-IVA (02), el valor de TipoFactura es incorrecto.

In English A recipient identified by an EU VAT number (IDOtro, IDType 02) is allowed only with TipoFactura F1, F3, R1, R2, R3 or R4.

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

[1156] Para el bloque IDOtro y IDType NIF-IVA (02), el valor de TipoFactura es incorrecto.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Destinatarios/*:IDDestinatario/*:IDOtro
Test
$type != '02' or normalize-space(ancestor::*:RegistroAlta/*:TipoFactura) = ('F1', 'F3', 'R1', 'R2', 'R3', 'R4')

Checked with VERI*FACTU invoice records