Skip to content

Commit 4ed2be5

Browse files
authored
Merge pull request erpbrasil#2 from Escodoo/feature/cte-fix-consulta_status
[feature/cte][FIX] erpbrasil.edoc: fix consulta_status
2 parents 845963f + c2b804a commit 4ed2be5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/erpbrasil/edoc/cte.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
RetConsStatServCte,
1515
RetCte,
1616
RetEventoCte,
17-
TconsSitCte,
18-
TconsStatServ,
17+
ConsSitCte,
1918
Tcte,
19+
ConsStatServCte
2020
)
2121

2222

@@ -202,7 +202,7 @@ def _verifica_resposta_envio_sucesso(self, proc_envio):
202202
)
203203

204204
def status_servico(self):
205-
raiz = TconsStatServ(
205+
raiz = ConsStatServCte(
206206
tpAmb=self.ambiente, cUF=self.uf, versao=self.versao
207207
)
208208
return self._post(
@@ -213,7 +213,7 @@ def status_servico(self):
213213
)
214214

215215
def consulta_documento(self, chave):
216-
raiz = TconsSitCte(tpAmb=self.ambiente, chCTe=chave, versao=self.versao)
216+
raiz = ConsSitCte(tpAmb=self.ambiente, chCTe=chave, versao=self.versao)
217217
return self._post(
218218
raiz=raiz,
219219
url=self._search_url("CTeConsultaV4"),

0 commit comments

Comments
 (0)