feat: add model for CustomReceiptLine
(op.customReceipt
)
This commit is contained in:
parent
2df3885420
commit
27a46ed18f
|
@ -1572,6 +1572,20 @@ class Tender(Base):
|
|||
return self.tender_name or ''
|
||||
|
||||
|
||||
class CustomReceiptLine(Base):
|
||||
"""
|
||||
Represents a "text string" line for a custom receipt.
|
||||
"""
|
||||
__tablename__ = 'customReceipt'
|
||||
|
||||
sequence = sa.Column('seq', sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
|
||||
type = sa.Column(sa.String(length=20), primary_key=True, autoincrement=False, nullable=False)
|
||||
text = sa.Column(sa.String(length=80), nullable=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.text or ""
|
||||
|
||||
|
||||
class BatchType(Base):
|
||||
"""
|
||||
Represents the definition of a batch type.
|
||||
|
|
Loading…
Reference in a new issue