Skip to content
Snippets Groups Projects
Commit 52674405 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

pretty print in transaction tables

parent e1063fca
No related branches found
No related tags found
1 merge request!52Minors fix
Pipeline #7887 passed with warnings with stages
in 4 minutes and 1 second
......@@ -7,7 +7,7 @@ from django_tables2.utils import A
from .models.notes import Alias
from .models.transactions import Transaction
from .templatetags.pretty_money import pretty_money
class HistoryTable(tables.Table):
class Meta:
......@@ -28,6 +28,11 @@ class HistoryTable(tables.Table):
.order_by(('-' if is_descending else '') + 'total')
return (queryset, True)
def render_amount(self,value):
return pretty_money(value)
def render_total(self,value):
return pretty_money(value)
class AliasTable(tables.Table):
class Meta:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment