NFE-782

Rejeição: CSOSN inválido para emitente MEI (CRT=4) [nItem: …] (CSOSN …).

In English An MEI issuer (CRT 4) with the DANFE Simplificado Tipo 2 may only use CSOSN 102 and 300.

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
nfe:infNFe/nfe:det
Test
not($simple and $crt = '4' and $idDest != '3' and $csosn) or $csosn = ('102', '300')

Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol