From 7cde3cf756405825b93aaba93d28f240ccd11f50 Mon Sep 17 00:00:00 2001 From: Leonardo Gregianin Date: Wed, 5 Aug 2020 23:14:40 -0400 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20do=20envio=20de=20encerram?= =?UTF-8?q?ento=20na=20convers=C3=A3o=20de=20int=20para=20str?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/processamento/serializacao.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pynfe/processamento/serializacao.py b/pynfe/processamento/serializacao.py index 06c7336..7433e28 100644 --- a/pynfe/processamento/serializacao.py +++ b/pynfe/processamento/serializacao.py @@ -753,8 +753,8 @@ class SerializacaoXML(Serializacao): etree.SubElement(encerramento, 'descEvento').text = evento.descricao etree.SubElement(encerramento, 'nProt').text = evento.protocolo etree.SubElement(encerramento, 'dtEnc').text = evento.dtenc.strftime('%Y-%m-%d') - etree.SubElement(encerramento, 'cUF').text = evento.cuf - etree.SubElement(encerramento, 'cMun').text = evento.cmun + etree.SubElement(encerramento, 'cUF').text = str(evento.cuf) + etree.SubElement(encerramento, 'cMun').text = str(evento.cmun) elif evento.descricao == 'Inclusão Condutor': inclusao = etree.SubElement(det, 'evIncCondutorMDFe') etree.SubElement(inclusao, 'descEvento').text = evento.descricao @@ -765,10 +765,10 @@ class SerializacaoXML(Serializacao): inclusao = etree.SubElement(det, 'evIncDFeMDFe') etree.SubElement(inclusao, 'descEvento').text = evento.descricao etree.SubElement(inclusao, 'nProt').text = evento.protocolo - etree.SubElement(inclusao, 'cMunCarrega').text = evento.cmun_carrega + etree.SubElement(inclusao, 'cMunCarrega').text = str(evento.cmun_carrega) etree.SubElement(inclusao, 'xMunCarrega').text = evento.xmun_carrega infDoc = etree.SubElement(inclusao, 'infDoc') - etree.SubElement(infDoc, 'cMunDescarga').text = evento.cmun_descarga + etree.SubElement(infDoc, 'cMunDescarga').text = str(evento.cmun_descarga) etree.SubElement(infDoc, 'xMunDescarga').text = evento.xmun_descarga etree.SubElement(infDoc, 'chNFe').text = evento.chave_nfe elif evento.descricao == 'Pagamento Operacao MDF-e':