Add basic TransactionDetail
for trans archive model
This commit is contained in:
parent
af6189b237
commit
2b80fd6a6b
3 changed files with 77 additions and 2 deletions
|
@ -35,11 +35,10 @@ Base = declarative_base()
|
|||
|
||||
|
||||
@six.python_2_unicode_compatible
|
||||
class TransactionDetail(Base):
|
||||
class TransactionDetailBase(object):
|
||||
"""
|
||||
Represents a POS transaction detail record.
|
||||
"""
|
||||
__tablename__ = 'dtransactions'
|
||||
|
||||
# store
|
||||
store_row_id = sa.Column(sa.Integer(), primary_key=True, nullable=False)
|
||||
|
@ -123,3 +122,10 @@ class TransactionDetail(Base):
|
|||
|
||||
def __str__(self):
|
||||
return self.description or ''
|
||||
|
||||
|
||||
class TransactionDetail(TransactionDetailBase, Base):
|
||||
"""
|
||||
Represents a POS transaction detail record.
|
||||
"""
|
||||
__tablename__ = 'dtransactions'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue