ERR236
Where General TIN (010) and ID Type BRN/NRIC = NA, applicable for Classification Code 004 only: the document has no line classified 004 (consolidated e-invoice).
Why it fails
- The general TIN EI00000000010 with BRN or NRIC NA was used for one buyer who gave no details, in a normal e-invoice.
How to fix it
Use EI00000000010 with NA only in a consolidated e-invoice (classification 004). For an individual buyer who asks for an e-invoice, give their NRIC with EI00000000010, or their own TIN.
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.
/*/cac:AccountingSupplierParty/cac:Party | /*/cac:AccountingCustomerParty/cac:Party
not($tin = 'EI00000000010' and cac:PartyIdentification/cbc:ID[@schemeID = ('BRN', 'NRIC')][normalize-space(.) = 'NA']) or $consolidated
Checked with MyInvois e-Invoice