Skip to content

Commit

Permalink
Merge pull request #322 from jonatasbiazus/master3
Browse files Browse the repository at this point in the history
O ajuste permite que a danfe seja gerada com o mesmo numero de casas …
  • Loading branch information
danimaribeiro authored May 11, 2023
2 parents 3995d8f + 6fa8a4d commit 5a105bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytrustnfe/nfe/danfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def getdateByTimezone(cDateUTC, timezone=None):

def format_number(cNumber):
if cNumber:
# Vírgula para a separação de milhar e 2f para 2 casas decimais
cNumber = "{:,.2f}".format(float(cNumber))
return cNumber.replace(",", "X").replace(".", ",").replace("X", ".")
return cNumber.replace(",", "X").replace("X", ".").replace(".", ",")
return ""


Expand Down

0 comments on commit 5a105bb

Please sign in to comment.