VF-1139

Si el campo ImporteTotal está informado y es igual o superior a +-100.000.000 el campo Macrodato debe estar informado con valor S.

In English An invoice whose ImporteTotal is 100,000,000 euros or more (in absolute value) needs Macrodato S.

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

[1139] Si el campo ImporteTotal está informado y es igual o superior a +-100.000.000 el campo Macrodato debe estar informado con valor S.

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
Test
abs($total) lt 100000000 or normalize-space(*:Macrodato) = 'S'

Checked with VERI*FACTU invoice records