Fix synonym for dtransactions.tax

This commit is contained in:
Lance Edgar 2023-10-20 19:03:20 -05:00
parent f217f00a8f
commit 909d75796b

View file

@ -26,6 +26,7 @@ CORE POS Transaction Data Model
import sqlalchemy as sa
from sqlalchemy import orm
from sqlalchemy.ext.declarative import declared_attr
Base = orm.declarative_base()
@ -121,7 +122,10 @@ class TransactionDetailBase(object):
reg_price = sa.Column('regPrice', sa.Numeric(precision=10, scale=2), nullable=True)
tax = sa.Column(sa.SmallInteger(), nullable=True)
tax_rate_id = orm.synonym('tax')
@declared_attr
def tax_rate_id(self):
return orm.synonym('tax')
food_stamp = sa.Column('foodstamp', sa.Boolean(), nullable=True)