NFE-897

Rejeição: Código numérico em formato inválido (cNF …, nNF …).

In English cNF is a trivial code (00000000, 11111111, 12345678 and the like) or equals nNF.

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
Test
not($ide/nfe:cNF = ('00000000', '11111111', '22222222', '33333333', '44444444', '55555555', '66666666', '77777777', '88888888', '99999999', '12345678', '23456789', '34567890', '45678901', '56789012', '67890123', '78901234', '89012345', '90123456', '01234567')) and br:dec($ide/nfe:cNF) != br:dec($ide/nfe:nNF)

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