VF-1165
Si el TipoImpositivo es 0% sólo se admite TipoRecargoEquivalencia 0% entre el 1 de enero de 2023 y el 30 de septiembre de 2024.
In English With a VAT rate of 0 % between 1 January 2023 and 30 September 2024 (date of the operation, or of the invoice), the equivalence surcharge may only be 0 %.
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.
[1165] Si el TipoImpositivo es 0% sólo se admite TipoRecargoEquivalencia 0% entre el 1 de enero de 2023 y el 30 de septiembre de 2024.
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
not($vatS1 and *:TipoImpositivo and *:TipoRecargoEquivalencia and $rate = 0) or empty($date) or $date lt xs:date('2023-01-01') or $date gt xs:date('2024-09-30') or $surcharge = 0
Checked with VERI*FACTU invoice records