mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 18:08:21 +02:00
Merge branch 'master' of gitlab.crans.org:bde/nk20
This commit is contained in:
@ -3,9 +3,9 @@ from django import template
|
||||
|
||||
def pretty_money(value):
|
||||
if value%100 == 0:
|
||||
return str(value//100) + '€'
|
||||
return "{:s}{:d} €".format("- " if value < 0 else "", abs(value) // 100)
|
||||
else:
|
||||
return str(value//100) + '€ ' + str(value%100)
|
||||
return "{:s}{:d} € {:02d}".format("- " if value < 0 else "", abs(value) // 100, abs(value) % 100)
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
Reference in New Issue
Block a user