VF-1245
Si el campo Impuesto está vacío o tiene valor IVA(01) o IPSI(02) o IGIC(03) el campo ClaveRegimen debe de estar cumplimentado.
In English ClaveRegimen (the VAT regime) is required when the tax is VAT (01), IGIC (03) or left out.
Why it fails
- Software that sends only CalificacionOperacion: the regime key is a field of its own, 01 for the general regime.
How to fix it
Give ClaveRegimen on every DetalleDesglose, 01 unless a special regime applies.
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.
[1245] Si el campo Impuesto está vacío o tiene valor IVA(01) o IPSI(02) o IGIC(03) el campo ClaveRegimen debe de estar cumplimentado.
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
not($vatlike) or $key != ''
Checked with VERI*FACTU invoice records