Fix data types for tax, voided in dtransactions

This commit is contained in:
Lance Edgar 2023-10-20 14:31:13 -05:00
parent 67dd9777ba
commit f217f00a8f

View file

@ -120,7 +120,8 @@ class TransactionDetailBase(object):
reg_price = sa.Column('regPrice', sa.Numeric(precision=10, scale=2), nullable=True) reg_price = sa.Column('regPrice', sa.Numeric(precision=10, scale=2), nullable=True)
tax = sa.Column(sa.Boolean(), nullable=True) tax = sa.Column(sa.SmallInteger(), nullable=True)
tax_rate_id = orm.synonym('tax')
food_stamp = sa.Column('foodstamp', sa.Boolean(), nullable=True) food_stamp = sa.Column('foodstamp', sa.Boolean(), nullable=True)
@ -132,7 +133,7 @@ class TransactionDetailBase(object):
discount_type = sa.Column('discounttype', sa.Integer(), nullable=True) discount_type = sa.Column('discounttype', sa.Integer(), nullable=True)
voided = sa.Column(sa.Boolean(), nullable=True) voided = sa.Column(sa.Integer(), nullable=True)
percent_discount = sa.Column('percentDiscount', sa.Integer(), nullable=True) percent_discount = sa.Column('percentDiscount', sa.Integer(), nullable=True)