VF-1227

Si el campo GeneradoPor es igual a E debe estar relleno el campo NIF del bloque Generador.

In English When the issuer generated the cancellation (GeneradoPor E), Generador must be identified by NIF.

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

[1227] Si el campo GeneradoPor es igual a E debe estar relleno el campo NIF del bloque Generador.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion
Test
not(normalize-space(*:GeneradoPor) = 'E') or *:Generador/*:NIF

Checked with VERI*FACTU invoice records