VF-1111

El campo CodigoPais es obligatorio cuando IDType es distinto de NIF-IVA (02).

In English CodigoPais is required when IDType is anything but NIF-IVA (02).

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

[1111] El campo CodigoPais es obligatorio cuando IDType es distinto de NIF-IVA (02).

Test
$otype = '02' or $ocountry != ''

Checked with VERI*FACTU invoice records