From 440cfd0d72387268c362ccf2df968ddafd297943 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 23 Jan 2018 20:08:24 -0600 Subject: [PATCH] Show new `cashback` field for Trainwreck transaction --- tailbone/views/trainwreck.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tailbone/views/trainwreck.py b/tailbone/views/trainwreck.py index d1b994ee..5360878d 100644 --- a/tailbone/views/trainwreck.py +++ b/tailbone/views/trainwreck.py @@ -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