VF-1149
Si ClaveRegimen es 14, el NIF de Destinatarios debe estar identificado en el censo de la AEAT y comenzar por P, Q, S o V.
In English With regime 14 (work certifications for a public administration), every recipient must be identified by a NIF starting with P, Q, S or V and known to the AEAT.
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.
[1149] Si ClaveRegimen es 14, el NIF de Destinatarios debe estar identificado en el censo de la AEAT y comenzar por P, Q, S o V.
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
not($vatlike and $key = '14') or (every $r in $recipients satisfies matches(normalize-space($r/*:NIF), '^[PQSV]'))
Checked with VERI*FACTU invoice records