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).
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.
[1111] El campo CodigoPais es obligatorio cuando IDType es distinto de NIF-IVA (02).
$otype = '02' or $ocountry != ''
Checked with VERI*FACTU invoice records