Show food stamp tender info for POS batch

This commit is contained in:
Lance Edgar 2023-10-19 19:12:28 -05:00
parent 5e8ea67773
commit dc99828b66
2 changed files with 6 additions and 1 deletions

View file

@ -49,6 +49,7 @@ class POSBatchView(BatchMasterView):
labels = { labels = {
'terminal_id': "Terminal ID", 'terminal_id': "Terminal ID",
'fs_tender_total': "FS Tender Total",
} }
grid_columns = [ grid_columns = [
@ -74,6 +75,7 @@ class POSBatchView(BatchMasterView):
'sales_total', 'sales_total',
'taxes', 'taxes',
'tender_total', 'tender_total',
'fs_tender_total',
'balance', 'balance',
'void', 'void',
'training_mode', 'training_mode',
@ -152,6 +154,7 @@ class POSBatchView(BatchMasterView):
g.set_type('sales_total', 'currency') g.set_type('sales_total', 'currency')
g.set_type('tender_total', 'currency') g.set_type('tender_total', 'currency')
g.set_type('fs_tender_total', 'currency')
# executed # executed
# nb. default view should show "all recent" batches regardless # nb. default view should show "all recent" batches regardless
@ -178,7 +181,7 @@ class POSBatchView(BatchMasterView):
f.set_type('sales_total', 'currency') f.set_type('sales_total', 'currency')
f.set_type('tender_total', 'currency') f.set_type('tender_total', 'currency')
f.set_type('tender_total', 'currency') f.set_type('fs_tender_total', 'currency')
if self.viewing: if self.viewing:
f.set_renderer('taxes', self.render_taxes) f.set_renderer('taxes', self.render_taxes)

View file

@ -40,6 +40,7 @@ class TenderView(MasterView):
'code', 'code',
'name', 'name',
'is_cash', 'is_cash',
'is_foodstamp',
'allow_cash_back', 'allow_cash_back',
'kick_drawer', 'kick_drawer',
] ]
@ -48,6 +49,7 @@ class TenderView(MasterView):
'code', 'code',
'name', 'name',
'is_cash', 'is_cash',
'is_foodstamp',
'allow_cash_back', 'allow_cash_back',
'kick_drawer', 'kick_drawer',
'notes', 'notes',