MYDATA-235
Issuer must be different from counterpart: both are ….
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
Context
inv:invoice
Test
not(matches($type, '^[125]\.')) or empty(inv:issuer) or empty(inv:counterpart) or normalize-space(inv:issuer/inv:vatNumber) ne normalize-space(inv:counterpart/inv:vatNumber) or normalize-space(inv:issuer/inv:country) ne normalize-space(inv:counterpart/inv:country)
Checked with myDATA 2.0.2