VF-1140

Los campos CuotaRepercutida y BaseImponibleACoste deben tener el mismo signo.

In English CuotaRepercutida and BaseImponibleACoste must have the same sign.

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

[1140] Los campos CuotaRepercutida y BaseImponibleACoste deben tener el mismo signo.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose
Test
not($kind = 'S1' and *:BaseImponibleACoste and $checked) or not(($quota lt 0 and $cost gt 0) or ($quota gt 0 and $cost lt 0))

Checked with VERI*FACTU invoice records