Rename module to corepos.db.office_arch
This commit is contained in:
parent
f06f236a60
commit
e5988102ad
4 changed files with 80 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# pyCOREPOS -- Python Interface to CORE POS
|
||||
# Copyright © 2018-2022 Lance Edgar
|
||||
# Copyright © 2018-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of pyCOREPOS.
|
||||
#
|
||||
|
@ -24,7 +24,9 @@
|
|||
"Archive" Transaction Database Interface
|
||||
"""
|
||||
|
||||
from sqlalchemy import orm
|
||||
import warnings
|
||||
warnings.warn("The `corepos.db.office_trans_archive` module is deprecated! "
|
||||
"Please use `corepos.db.office_arch` instead.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
|
||||
Session = orm.sessionmaker()
|
||||
from corepos.db.office_arch import *
|
||||
|
|
|
@ -24,16 +24,9 @@
|
|||
CORE POS Transaction Data Model
|
||||
"""
|
||||
|
||||
from sqlalchemy import orm
|
||||
import warnings
|
||||
warnings.warn("The `corepos.db.office_trans_archive.model` module is deprecated! "
|
||||
"Please use `corepos.db.office_arch.model` instead.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
from corepos.db.office_trans.model import TransactionDetailBase
|
||||
|
||||
|
||||
Base = orm.declarative_base()
|
||||
|
||||
|
||||
class TransactionDetail(TransactionDetailBase, Base):
|
||||
"""
|
||||
Represents a POS transaction detail record.
|
||||
"""
|
||||
__tablename__ = 'bigArchive'
|
||||
from corepos.db.office_arch.model import *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue