Show new cashback
field for Trainwreck transaction
This commit is contained in:
parent
04d1e303be
commit
440cfd0d72
|
@ -60,6 +60,10 @@ class TransactionView(MasterView):
|
||||||
'total',
|
'total',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
labels = {
|
||||||
|
'cashback': "Cash Back",
|
||||||
|
}
|
||||||
|
|
||||||
has_rows = True
|
has_rows = True
|
||||||
# model_row_class = trainwreck.TransactionItem
|
# model_row_class = trainwreck.TransactionItem
|
||||||
rows_default_pagesize = 100
|
rows_default_pagesize = 100
|
||||||
|
@ -94,6 +98,7 @@ class TransactionView(MasterView):
|
||||||
'subtotal',
|
'subtotal',
|
||||||
'discounted_subtotal',
|
'discounted_subtotal',
|
||||||
'tax',
|
'tax',
|
||||||
|
'cashback',
|
||||||
'total',
|
'total',
|
||||||
'void',
|
'void',
|
||||||
]
|
]
|
||||||
|
@ -129,6 +134,7 @@ class TransactionView(MasterView):
|
||||||
f.set_type('subtotal', 'currency')
|
f.set_type('subtotal', 'currency')
|
||||||
f.set_type('discounted_subtotal', 'currency')
|
f.set_type('discounted_subtotal', 'currency')
|
||||||
f.set_type('tax', 'currency')
|
f.set_type('tax', 'currency')
|
||||||
|
f.set_type('cashback', 'currency')
|
||||||
f.set_type('total', 'currency')
|
f.set_type('total', 'currency')
|
||||||
|
|
||||||
# label overrides
|
# label overrides
|
||||||
|
|
Loading…
Reference in a new issue