MYDATA-243

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 be in Europe but not Greece: a … (intra-Community …) goes to ….

Context
inv:invoice
Test
not($type = ('1.2', '2.2')) or empty(inv:counterpart) or (gr:eu(inv:counterpart/inv:country) and inv:counterpart/inv:country != 'GR')

Checked with myDATA 2.0.2

Message

Issuer's country for this invoice type must be in Europe but not Greece: a … (intra-Community …) comes from ….

Context
inv:invoice
Test
not($type = ('14.1', '14.3')) or empty(inv:issuer) or (gr:eu(inv:issuer/inv:country) and inv:issuer/inv:country != 'GR')

Checked with myDATA 2.0.2