Fix id field for TaxRateComponent

This commit is contained in:
Lance Edgar 2020-03-31 14:09:39 -05:00
parent 14a182c675
commit d818100da3

View file

@ -260,7 +260,8 @@ class TaxRateComponent(Base):
sa.ForeignKeyConstraint(['taxRateID'], ['taxrates.id']),
)
id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
taxRateComponentID = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
id = orm.synonym('taxRateComponentID')
tax_rate_id = sa.Column('taxRateID', sa.Integer())
tax_rate = orm.relationship(TaxRate, backref='components')