VF-1142

El campo CuotaRepercutida tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto y TipoImpositivo suministrados (…, …).

In English CuotaRepercutida is more than 10 euros away from the base (BaseImponibleOimporteNoSujeto) times the rate (TipoImpositivo).

error: the document is invalid

Why it fails

  • The tax of several lines was added up into one breakdown line, or a line has the wrong rate.
  • Not checked for corrective invoices by differences (TipoRectificativa I) or of type R2 and R3.

How to fix it

Give one DetalleDesglose per tax, regime and rate, with its own base and tax amount.

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

[1142] El campo CuotaRepercutida tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto y TipoImpositivo suministrados (…, …).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
Test
not($kind = 'S1' and not(*:BaseImponibleACoste) and $checked and *:TipoImpositivo and *:CuotaRepercutida) or abs($quota - $base * $rate div 100) le 10

Checked with VERI*FACTU invoice records