Ir para conteúdo
  • Cadastre-se

Ailton Bergamo

Membros
  • Total de ítens

    3
  • Registro em

  • Última visita

Posts postados por Ailton Bergamo

  1. Conforme rotina abaixa não esta reconhecendo o campo chNFe:
    
    Falha na validação dos dados do Evento: 1824 - Element '{http://www.portalfiscal.inf.br/cte}chNFe': '' is not a valid value of the atomic type '{http://www.portalfiscal.inf.br/cte}TChNFe'.
    ACBrCTe1.EventoCTe.Evento.Clear;
    
    with ACBrCTe1.EventoCTe.Evento.New do
    begin
      infEvento.chCTe := ChaveCTe;
      infEvento.CNPJ := CNPJEmitente;
      infEvento.dhEvento := now;
      infEvento.tpEvento := teComprEntrega;
      infEvento.nSeqEvento := 1;
    
      infEvento.detEvento.nProt := nProtocoloAutorizacao;
      infEvento.detEvento.dhEntrega := datahoraEntrega;
      infEvento.detEvento.nDoc      := NumeroDocumento;
      infEvento.detEvento.xNome     := NomedoRecebedor;
      infEvento.detEvento.latitude  := fLatitude;
      infEvento.detEvento.longitude := fLongitude;
    
      infEvento.detEvento.hashEntrega   := hashdaEntrega;
      infEvento.detEvento.dhHashEntrega := datahhoradoHashEntrega;
      
      InfEvento.detEvento.infEntrega.Clear;
      // o bloco abaixo poderá se repetir por até 2000 vezes 
      with InfEvento.detEvento.infEntrega.New do
        chNFe := ChaveNFe;
    
    end;
    
    ACBrCTe1.EnviarEvento( 1 ); // 1 = Numero do Lote
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.