NFE-1280Rejeição 1280

Rejeição: Grupo do ICMS Previsto no Pagamento Antecipado informado indevidamente [nItem: …].

In English The group of the ICMS expected on an advance payment (ICMSPrevistoPagtoAntecip) is only for a debit note of type 06 or a government purchase paid before supply (tpOperGov 4).

error: the document is invalid Rejeições da NF-e: códigos e como corrigir →

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(nfe:imposto/nfe:ICMS/nfe:ICMSPrevistoPagtoAntecip) or $ide/nfe:tpNFDebito = '06' or $ide/nfe:gCompraGov/nfe:tpOperGov = '4'

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