Skip to content

Commit

Permalink
Serializacao: Fixando 2 casas decimais para vNF e vProd
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunorio committed Aug 21, 2024
1 parent 81ea4a7 commit ce36a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynfe/processamento/serializacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ def _serializar_nota_fiscal(
if nota_fiscal.totais_icms_v_icms_mono_ret:
etree.SubElement(icms_total, "vICMSMonoRet").text = "{:.2f}".format(nota_fiscal.totais_icms_v_icms_mono_ret)

etree.SubElement(icms_total, "vProd").text = str(
etree.SubElement(icms_total, "vProd").text = "{:.2f}".format(
nota_fiscal.totais_icms_total_produtos_e_servicos
)
etree.SubElement(icms_total, "vFrete").text = "{:.2f}".format(
Expand Down Expand Up @@ -1695,7 +1695,7 @@ def _serializar_nota_fiscal(
etree.SubElement(icms_total, "vOutro").text = "{:.2f}".format(
nota_fiscal.totais_icms_outras_despesas_acessorias
)
etree.SubElement(icms_total, "vNF").text = str(
etree.SubElement(icms_total, "vNF").text = "{:.2f}".format(
nota_fiscal.totais_icms_total_nota
)
if nota_fiscal.totais_tributos_aproximado:
Expand Down

0 comments on commit ce36a1c

Please sign in to comment.