Expose views for "transaction archive"

just shows `trans_archive.bigArchive` so far.  is more needed?
This commit is contained in:
Lance Edgar 2023-10-05 11:54:22 -05:00
parent 5e1726a90e
commit 45e28fe088
2 changed files with 13 additions and 7 deletions

View file

@ -171,6 +171,17 @@ def make_corepos_menu(request):
'title': "Transactions",
'type': 'menu',
'items': [
{
'title': "Transaction Details (current)",
'route': 'corepos.transaction_details',
'perm': 'corepos.transaction_details.list',
},
{
'title': "Transaction Details (archive)",
'route': 'corepos.transaction_details_archive',
'perm': 'corepos.transaction_details_archive.list',
},
{'type': 'sep'},
{
'title': "House Coupons",
'route': 'corepos.house_coupons',
@ -191,11 +202,6 @@ def make_corepos_menu(request):
'route': 'corepos.tenders',
'perm': 'corepos.tenders.list',
},
{
'title': "Transaction Details",
'route': 'corepos.transaction_details',
'perm': 'corepos.transaction_details.list',
},
],
},
{

View file

@ -26,7 +26,7 @@ CORE-POS "archive" transaction views
from collections import OrderedDict
from corepos.db.office_trans_archive import model as corearch
from corepos.db.office_arch.model import TransactionDetail
from .base import TransactionDetailMasterView
from tailbone_corepos.db import CoreTransArchiveSession, ExtraCoreTransArchiveSessions
@ -36,7 +36,7 @@ class TransactionDetailView(TransactionDetailMasterView):
"""
Master view for "archive" transaction details.
"""
model_class = corearch.TransactionDetail
model_class = TransactionDetail
model_title = "CORE-POS Archived Transaction Detail"
url_prefix = '/corepos/transaction-details/archive'
route_prefix = 'corepos.transaction_details_archive'