VF-1191

Si TipoFactura es R3 sólo se admitirá NIF o IDType = No Censado (07).

In English With TipoFactura R3, recipients may only be identified by NIF or as not registered (IDType 07).

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

[1191] Si TipoFactura es R3 sólo se admitirá NIF o IDType = No Censado (07).

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

Checked with VERI*FACTU invoice records