Skip to content

Commit

Permalink
[FIX] substituicao de constantes por variaveis no metodo init
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomatoskmee authored and mileo committed Jun 27, 2024
1 parent a597351 commit ca34227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/erpbrasil/edoc/cte.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ class CTe(DocumentoEletronico):
def __init__(self, config, xml):
self.config = config
self._xml = xml
self._ambiente = 2
self._uf = "SP"
self._ambiente = self.config #tpAmb
self._uf = self.config #uf
self._versao = 4.00
self._chaveCte = 123456789
self._chaveCte = self._gerar_chave(self.config)
self.assinatura = Assinatura(self.config) # self.config.certificado
self.transmissao = TransmissaoSOAP(self.config) # self.config.certificado
super(CTe, self).__init__(self.transmissao)
Expand Down

0 comments on commit ca34227

Please sign in to comment.