VF-1147

Si ClaveRegimen es 14, FechaOperacion es obligatoria y debe ser posterior a la FechaExpedicionFactura.

In English With regime 14, FechaOperacion is required and must be after the invoice date.

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

[1147] Si ClaveRegimen es 14, FechaOperacion es obligatoria y debe ser posterior a la FechaExpedicionFactura.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
Test
not($vatlike and $key = '14') or (exists(es:date($alta/*:FechaOperacion)) and es:date($alta/*:FechaOperacion) gt es:date($alta/*:IDFactura/*:FechaExpedicionFactura))

Checked with VERI*FACTU invoice records