diff --git a/tailbone_corepos/menus.py b/tailbone_corepos/menus.py index 5b36da1..afa4ebc 100644 --- a/tailbone_corepos/menus.py +++ b/tailbone_corepos/menus.py @@ -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', - }, ], }, { diff --git a/tailbone_corepos/views/corepos/transactions/archive.py b/tailbone_corepos/views/corepos/transactions/archive.py index a5a8b49..148ff06 100644 --- a/tailbone_corepos/views/corepos/transactions/archive.py +++ b/tailbone_corepos/views/corepos/transactions/archive.py @@ -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'