Show new cashback field for Trainwreck transaction

This commit is contained in:
Lance Edgar 2018-01-23 20:08:24 -06:00
parent 04d1e303be
commit 440cfd0d72

View file

@ -60,6 +60,10 @@ class TransactionView(MasterView):
'total',
]
labels = {
'cashback': "Cash Back",
}
has_rows = True
# model_row_class = trainwreck.TransactionItem
rows_default_pagesize = 100
@ -94,6 +98,7 @@ class TransactionView(MasterView):
'subtotal',
'discounted_subtotal',
'tax',
'cashback',
'total',
'void',
]
@ -129,6 +134,7 @@ class TransactionView(MasterView):
f.set_type('subtotal', 'currency')
f.set_type('discounted_subtotal', 'currency')
f.set_type('tax', 'currency')
f.set_type('cashback', 'currency')
f.set_type('total', 'currency')
# label overrides