|
|
@ -81,7 +81,7 @@ def getdateByTimezone(cDateUTC, timezone=None): |
|
|
def format_number(cNumber): |
|
|
def format_number(cNumber): |
|
|
if cNumber: |
|
|
if cNumber: |
|
|
# Vírgula para a separação de milhar e 2f para 2 casas decimais |
|
|
# Vírgula para a separação de milhar e 2f para 2 casas decimais |
|
|
value = "{:,.2f}".format(float(cNumber)) |
|
|
|
|
|
|
|
|
cNumber = "{:,.2f}".format(float(cNumber)) |
|
|
return cNumber.replace(",", "X").replace(".", ",").replace("X", ".") |
|
|
return cNumber.replace(",", "X").replace(".", ",").replace("X", ".") |
|
|
return "" |
|
|
return "" |
|
|
|
|
|
|
|
|
@ -986,4 +986,3 @@ obsCont[@xCampo='NomeVendedor']") |
|
|
paragraph = Paragraph(ptext, style=style) |
|
|
paragraph = Paragraph(ptext, style=style) |
|
|
w, h = paragraph.wrapOn(self.canvas, x, y) |
|
|
w, h = paragraph.wrapOn(self.canvas, x, y) |
|
|
return w, h, paragraph |
|
|
return w, h, paragraph |
|
|
|
|
|
|