Skip to content

Commit

Permalink
Removido IE de consulta cadastro
Browse files Browse the repository at this point in the history
  • Loading branch information
juniortada committed Mar 22, 2017
1 parent 75406a1 commit 6125149
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pynfe/processamento/comunicacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def status_servico(self, modelo):
# Chama método que efetua a requisição POST no servidor SOAP
return self._post(url, xml)

def consultar_cadastro(self, modelo, ie, cnpj):
def consultar_cadastro(self, modelo, cnpj):
# RS implementa um método diferente na consulta de cadastro
if self.uf.upper() == 'RS':
url = NFE['RS']['CADASTRO']
Expand All @@ -190,7 +190,6 @@ def consultar_cadastro(self, modelo, ie, cnpj):
info = etree.SubElement(raiz, 'infCons')
etree.SubElement(info, 'xServ').text = 'CONS-CAD'
etree.SubElement(info, 'UF').text = self.uf.upper()
#etree.SubElement(info, 'IE').text = ie
etree.SubElement(info, 'CNPJ').text = cnpj
#etree.SubElement(info, 'CPF').text = cpf
# Monta XML para envio da requisição
Expand Down

0 comments on commit 6125149

Please sign in to comment.