VF-1192

Si TipoFactura es R2 sólo se admitirá NIF o IDType = No Censado (07) o NIF-IVA (02).

In English With TipoFactura R2, recipients may only be identified by NIF, as not registered (IDType 07) or by an EU VAT number (02).

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

[1192] Si TipoFactura es R2 sólo se admitirá NIF o IDType = No Censado (07) o NIF-IVA (02).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
Test
not($type = 'R2') or (every $r in $recipients satisfies ($r/*:NIF or normalize-space($r/*:IDOtro/*:IDType) = ('02', '07')))

Checked with VERI*FACTU invoice records