feat: add model for CustomReceiptLine (op.customReceipt)

This commit is contained in:
Lance Edgar 2024-08-06 10:38:01 -05:00
parent 2df3885420
commit 27a46ed18f

View file

@ -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.