Skip to content

Commit d2b0fe7

Browse files
authored
Merge pull request #220 from leogregianin/fix/nota-devolucao
Corrige geração do valor pagamento na nfe devolução
2 parents f07bb5b + 861a8b1 commit d2b0fe7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynfe/processamento/serializacao.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def _serializar_nota_fiscal(self, nota_fiscal, tag_raiz='infNFe', retorna_string
989989
Para as notas com finalidade de Ajuste ou Devolução o campo Forma de Pagamento deve ser preenchido com 90=Sem Pagamento. """
990990
pag = etree.SubElement(raiz, 'pag')
991991
detpag = etree.SubElement(pag, 'detPag')
992-
if nota_fiscal.finalidade_emissao == '3' or nota_fiscal.finalidade_emissao == '4':
992+
if str(nota_fiscal.finalidade_emissao) == '3' or str(nota_fiscal.finalidade_emissao) == '4':
993993
etree.SubElement(detpag, 'tPag').text = '90'
994994
etree.SubElement(detpag, 'vPag').text = '{:.2f}'.format(0)
995995
else:

0 commit comments

Comments
 (0)