some changes about fee and tenancy mapping
This commit is contained in:
@ -15,3 +15,13 @@ SELECT o.id ,o.description ,o.amount ,o.startdate ,o.enddate
|
||||
"params": (flatId, )
|
||||
}
|
||||
)
|
||||
|
||||
def get_fees_by_tenancy(user, token_info, tenancyId=None):
|
||||
return dbGetMany(user, token_info, {
|
||||
"statement": """
|
||||
SELECT o.id, o.description, o.amount, o.fee_type, o.startdate, o.enddate
|
||||
FROM fee_t o, tenancy_fee_mapping_t m
|
||||
WHERE o.id = m.fee and m.tenancy = %s""",
|
||||
"params": (tenancyId, )
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user