This commit is contained in:
2021-10-31 21:47:53 +01:00
parent 8c4dbe7d71
commit 2b883aee02
9 changed files with 101 additions and 8 deletions

View File

@ -43,3 +43,14 @@ def get_tenant_with_saldo(user, token_info):
"params": ()
}
)
def get_account_by_description(user, token_info, description=None):
return dbGetOne(user, token_info, {
"statement": """
SELECT a.id ,a.description
FROM account_t a
WHERE a.description = %s""",
"params": (description, )
}
)