From 27a46ed18f72cc721f65861408dc0905205368de Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 6 Aug 2024 10:38:01 -0500 Subject: [PATCH] feat: add model for `CustomReceiptLine` (`op.customReceipt`) --- corepos/db/office_op/model.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index d5da2f7..33c8313 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -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.