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 = {
'terminal_id': "Terminal ID",
'fs_tender_total': "FS Tender Total",
}
grid_columns = [
@ -74,6 +75,7 @@ class POSBatchView(BatchMasterView):
'sales_total',
'taxes',
'tender_total',
'fs_tender_total',
'balance',
'void',
'training_mode',
@ -152,6 +154,7 @@ class POSBatchView(BatchMasterView):
g.set_type('sales_total', 'currency')
g.set_type('tender_total', 'currency')
g.set_type('fs_tender_total', 'currency')
# executed
# 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('tender_total', 'currency')
f.set_type('tender_total', 'currency')
f.set_type('fs_tender_total', 'currency')
if self.viewing:
f.set_renderer('taxes', self.render_taxes)

View file

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