NFE-1136

Rejeição: Não é possível repetir o Tipo de Classificação para o cálculo do crédito presumido na ZFM neste DFe.

In English Two items have the same classification for the presumed IBS credit in the Manaus Free Trade Zone (tpCredPresIBSZFM).

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
count($det/nfe:imposto/nfe:IBSCBS/nfe:gCredPresIBSZFM/nfe:tpCredPresIBSZFM) = count(distinct-values($det/nfe:imposto/nfe:IBSCBS/nfe:gCredPresIBSZFM/nfe:tpCredPresIBSZFM))

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