NFE-682

The rule sets below word this rule differently; each wording is shown with its rule set.

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.

Message

Rejeição: Proibido referenciar NF de Produtor (refNFP, a partir de …).

Context
nfe:infNFe
Test
not($paperBanned and $refs/nfe:refNFP)

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

Message

Rejeição: Duplicidade de NF de Produtor referenciada (IE, Modelo, Série e Número) [nOcor: …].

Context
nfe:infNFe/nfe:ide/nfe:NFref/nfe:refNFP
Test
not(../preceding-sibling::nfe:NFref/nfe:refNFP[string(nfe:IE) = string(current()/nfe:IE) and string(nfe:mod) = string(current()/nfe:mod) and string(nfe:serie) = string(current()/nfe:serie) and string(nfe:nNF) = string(current()/nfe:nNF)])

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