VF-1146
Sólo se permite que la fecha de expedicion de la factura sea anterior a la fecha operación si los detalles del desglose son ClaveRegimen 14 o 15 e Impuesto 01, 03 o vacío.
In English The invoice may be dated before the operation (FechaOperacion) only when a breakdown line has regime 14 or 15 (VAT not yet due) and the tax is VAT, IGIC or left out.
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.
[1146] Sólo se permite que la fecha de expedicion de la factura sea anterior a la fecha operación si los detalles del desglose son ClaveRegimen 14 o 15 e Impuesto 01, 03 o vacío.
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
empty($issued) or empty($operation) or not($issued lt $operation) or $vatlike/*:ClaveRegimen[normalize-space(.) = ('14', '15')] or not($vatlike)
Checked with VERI*FACTU invoice records