VF-1246

El valor del campo ClaveRegimen es incorrecto (… para el Impuesto …).

In English ClaveRegimen is not in the list for the line's tax: list L8A for VAT, L8B (plus 20 and 21) for IGIC, and 01, 08, 11, 18, 19 or 20 for IPSI.

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

[1246] El valor del campo ClaveRegimen es incorrecto (… para el Impuesto …).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
Test
$key = '' or ($tax = '01' and $key = ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '14', '15', '17', '18', '19', '20')) or ($tax = '02' and $key = ('01', '08', '11', '18', '19', '20')) or ($tax = '03' and $key = ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '14', '15', '17', '18', '19', '20', '21')) or not($tax = ('01', '02', '03'))

Checked with VERI*FACTU invoice records