ERR255

General TIN (040) is applicable for BRN NA only.

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
/*/cac:AccountingSupplierParty/cac:Party | /*/cac:AccountingCustomerParty/cac:Party
Test
$tin ne 'EI00000000040' or (exists($brn) and (every $b in $brn satisfies normalize-space($b) = 'NA'))

Checked with MyInvois e-Invoice