Jump to content

dev botao

Consultar Cadastro Do Contribuinte Antes De Enviar Um Nfc-E


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

Recommended Posts

Bom dia.

Como devo proceder para consultar o cadastro do contribuinte na hora de enviar a NFC-e, sempre que mando a NFC-e informando o CPF ou CNPJ me retorna a menssagem dizendo q o kra e contribuinte de icms, passei a tag Dest.indIEDest         := inNaoContribuinte resolveu, mas sei que nao e correto enviar todas NFC-e dessa maneira, tentei utilizar a rotina existente do demo do acbr 

 
 UF, Documento : String;
begin
 if not(InputQuery('WebServices Consulta Cadastro ', 'UF do Documento a ser Consultado:',    UF)) then
    exit;
 if not(InputQuery('WebServices Consulta Cadastro ', 'Documento(CPF/CNPJ)',    Documento)) then
    exit;
  Documento :=  Trim(DFeUtil.LimpaNumero(Documento));
  ACBrNFe1.WebServices.ConsultaCadastro.UF  := UF;
  if Length(Documento) > 11 then
     ACBrNFe1.WebServices.ConsultaCadastro.CNPJ := Documento
  else
     ACBrNFe1.WebServices.ConsultaCadastro.CPF := Documento;
  ACBrNFe1.WebServices.ConsultaCadastro.Executar;
 
  MemoResp.Lines.Text :=  UTF8Encode(ACBrNFe1.WebServices.ConsultaCadastro.RetWS);
  memoRespWS.Lines.Text :=  UTF8Encode(ACBrNFe1.WebServices.ConsultaCadastro.RetornoWS);
  LoadXML(MemoResp, WBResposta);
 
  ShowMessage(ACBrNFe1.WebServices.ConsultaCadastro.xMotivo);
  ShowMessage(ACBrNFe1.WebServices.ConsultaCadastro.RetConsCad.InfCad.Items[0].xNome);
 
porem sempre me retorna que URL nao esta disponivel para o estado
Edited by fpasqueto
Link to comment
Share on other sites

  • Este tópico foi criado há 3454 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.