VF-1119

Si la factura no es de tipo rectificativa por sustitución el bloque ImporteRectificacion no debe tener valor.

In English ImporteRectificacion may only be given for a corrective invoice by substitution (TipoRectificativa S).

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

[1119] Si la factura no es de tipo rectificativa por sustitución el bloque ImporteRectificacion no debe tener valor.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
Test
normalize-space(*:TipoRectificativa) = 'S' or not(*:ImporteRectificacion)

Checked with VERI*FACTU invoice records