devis_view.pt : affichage devis, facture, proforma
This commit is contained in:
@@ -38,6 +38,21 @@ def to_euro(x):
|
||||
#else:
|
||||
return (u"%.2f €" % x).replace('.', ',')
|
||||
|
||||
def to_euroz(x):
|
||||
"""Takes a float and returns a string"""
|
||||
if x == 0:
|
||||
return ""
|
||||
else:
|
||||
return (u"%.2f €" % x).replace('.', ',')
|
||||
|
||||
def to_decz(x):
|
||||
"""Takes a decimal and returns a string"""
|
||||
if x == 0:
|
||||
return ""
|
||||
else:
|
||||
return (u"%.2f" % x).replace('.', ',')
|
||||
|
||||
|
||||
def to_sha1(message):
|
||||
return hashlib.sha1(message.encode('utf-8')).hexdigest()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user