VF-1167

Si el TipoImpositivo es 5% sólo se admite TipoRecargoEquivalencia 0,5 si Fecha Operacion (Fecha Expedicion Factura si no se informa FechaOperacion) es mayor o igual que el 1 de julio de 2022 y el 31 de diciembre de 2022.

In English With a VAT rate of 5 % up to 31 December 2022 (date of the operation, or of the invoice), the equivalence surcharge may only be 0.5 %.

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

[1167] Si el TipoImpositivo es 5% sólo se admite TipoRecargoEquivalencia 0,5 si Fecha Operacion (Fecha Expedicion Factura si no se informa FechaOperacion) es mayor o igual que el 1 de julio de 2022 y el 31 de diciembre de 2022.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
Test
not($vatS1 and *:TipoRecargoEquivalencia and $rate = 5) or empty($date) or $date gt xs:date('2022-12-31') or $surcharge = 0.5

Checked with VERI*FACTU invoice records