Commit c8fca33b authored by plb's avatar plb
Browse files

ajout de la relation entre bank et tva

parent dbcce451
......@@ -41,6 +41,10 @@ class Bank(Base):
primaryjoin="and_(Bank.id==BankUrl.fk_bank, " "BankUrl.type=='payment_supplier')",
lazy="subquery",
)
payment_tva = relationship(
"TVA", backref="bank",
lazy="subquery"
)
class BankAccount(Base):
......@@ -96,6 +100,12 @@ class BankUrl(Base):
)
class TVA(Base):
__tablename__ = "llx_tva"
id = Column("rowid", Integer, primary_key=True)
fk_bank = Column('fk_bank', Integer, ForeignKey('llx_bank.rowid'))
class CotisationsSociales(Base):
__tablename__ = "llx_chargesociales"
id = Column("rowid", Integer, primary_key=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment