ZahlungForderung

This commit is contained in:
2021-01-18 18:37:19 +01:00
parent 272d8a13e2
commit 47d918cdbf
7 changed files with 181 additions and 80 deletions

View File

@ -22,3 +22,15 @@ SELECT w.id as id,
WHERE o.id = w.objekt AND
w.id = ?
""", (id, ), "Wohnung")
def get_wohnungen_by_objekt(id):
return getMany("""
SELECT w.id as id,
w.objekt as objekt_id,
w.shortname as wohnung,
w.flaeche as flaeche,
o.shortname as objekt
FROM wohnung w, objekt o
WHERE o.id = w.objekt AND
o.id = ?
""", [ id ], "Wohnung")