Jump to content

dev botao
  • Este tópico foi criado há 2129 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Posted
Boa tarde pessoal,
 
abaixo, meu código fonte:
 
  ACBrNFe1.EventoNFe.Evento.Clear;
  with ACBrNFe1.EventoNFe.Evento.Add do
   begin
     infEvento.chNFe                 := Chave;
     infEvento.CNPJ                    := CNPJ;
     infEvento.dhEvento            := now;
     infEvento.tpEvento              := teCancSubst;
     infEvento.detEvento.xJust       := Justificativa;
     infEvento.detEvento.nProt       := Protocolo;
     infEvento.detEvento.cOrgaoAutor := 41;
     infEvento.detEvento.verAplic    := '1.0';
     infEvento.detEvento.chNFeRef    := ChaveAcessoNFCeSubstituta;
   end;
  ACBrNFe1.EnviarEvento(StrToInt(idLote));
 
---
 
Verificando no fonte do Acbr, não encontrei condicional para o teCancSubst, no trecho de código abaixo:
 
TACBrNFe.EnviarEvento(idLote: integer): Boolean;
...
        if EventoNFe.Evento.Items.infEvento.tpEvento = teCancelamento then
        begin
          EventoNFe.Evento.Items.infEvento.detEvento.nProt := NotasFiscais.Items[j].NFe.procNFe.nProt;
 
 
 
Podem me ajudar?
Observação: Atualizei o Acbr hoje.
 
Marcel
Posted

Bom dia Felipe,

sim, eu tinha verificado essa postagem, mas mesmo assim, seguindo o modelo informado,

ocorre o problema de não haver condicional preparada para teCancSubst.

Talvez eu precise chamar outro procedimento.

Mas agradeço pela resposta!

  • Este tópico foi criado há 2129 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

The popup will be closed in 10 seconds...