MYDATA-244

The rule sets below word this rule differently; each wording is shown with its rule set.

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

Counterpart's country for this invoice type must not be in EU: a … (… to a third country) goes to ….

Context
inv:invoice
Test
not($type = ('1.3', '2.3')) or empty(inv:counterpart) or not(gr:eu(inv:counterpart/inv:country))

Checked with myDATA 2.0.2

Message

Issuer's country for this invoice type must not be in EU: a … (… from a third country) comes from ….

Context
inv:invoice
Test
not($type = ('14.2', '14.4')) or empty(inv:issuer) or not(gr:eu(inv:issuer/inv:country))

Checked with myDATA 2.0.2