Add model for office_op.Tender
This commit is contained in:
parent
541adb6979
commit
83eecad28d
|
@ -1560,6 +1560,28 @@ class HouseCoupon(Base):
|
|||
return self.description or ''
|
||||
|
||||
|
||||
class Tender(Base):
|
||||
"""
|
||||
Represents a tender for payment at POS
|
||||
"""
|
||||
__tablename__ = 'tenders'
|
||||
|
||||
tender_id = sa.Column('TenderID', sa.Integer(), primary_key=True, nullable=False)
|
||||
|
||||
tender_code = sa.Column('TenderCode', sa.String(length=2), nullable=True)
|
||||
tender_name = sa.Column('TenderName', sa.String(length=25), nullable=True)
|
||||
tender_type = sa.Column('TenderType', sa.String(length=2), nullable=True)
|
||||
change_message = sa.Column('ChangeMessage', sa.String(length=25), nullable=True)
|
||||
min_amount = sa.Column('MinAmount', sa.Numeric(precision=10, scale=2), nullable=True)
|
||||
max_amount = sa.Column('MaxAmount', sa.Numeric(precision=10, scale=2), nullable=True)
|
||||
max_refund = sa.Column('MaxRefund', sa.Numeric(precision=10, scale=2), nullable=True)
|
||||
tender_module = sa.Column('TenderModule', sa.String(length=50), nullable=True)
|
||||
sales_code = sa.Column('SalesCode', sa.Integer(), nullable=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.tender_name or ''
|
||||
|
||||
|
||||
class BatchType(Base):
|
||||
"""
|
||||
Represents the definition of a batch type.
|
||||
|
|
Loading…
Reference in a new issue